Submitted by : nachtigall at: 2006-04-02T12:25:28+00:00 (11 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

The problem is that Mail.py accesses a private variable "_members", which is not available in CMFMember?. Here is the traceback:

2006-04-02T21:01:57 ERROR(200) SiteError http://freifunk.net/wiki/WirelessCommunityWeekend/subscribeform Traceback (most recent call last): File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/ZPublisher/Publish.py", line 101, in publish request, bind=1) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/ZPublisher/mapply.py", line 88, in mapply if debug is not None: return debug(object,args,context) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/ZPublisher/Publish.py", line 39, in call_object result=apply(object,args) # Type s to step into published object. File "/home/www.freifunk.net/freifunk-instance_plone2.1/Products/ZWiki/Views.py", line 636, in subscribeform return self.getSkinTemplate(subscribeform)(self,REQUEST) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/Shared/DC/Scripts/Bindings.py", line 306, in __call__ return self._bindAndExec(args, kw, None) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec return self._exec(bound_data, args, kw) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/Products/PageTemplates/PageTemplateFile.py", line 106, in _ex ec return self.pt_render(extra_context=bound_names) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/Products/PageTemplates/PageTemplate.py", line 96, in pt_rende r tal=not source, strictinsert=0)() File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 190, in __call__ self.interpret(self.program) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 234, in interpret handlers[opcode](self, args) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 671, in do_useMacro self.interpret(macro) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 234, in interpret handlers[opcode](self, args) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 409, in do_optTag_tal self.do_optTag(stuff) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 394, in do_optTag return self.no_tag(start, program) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 389, in no_tag self.interpret(program) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 234, in interpret handlers[opcode](self, args) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 694, in do_defineSlot self.interpret(slot) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 234, in interpret handlers[opcode](self, args) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/TAL/TALInterpreter.py", line 460, in do_setLocal_tal self.engine.setLocal(name, self.engine.evaluateValue(expr)) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/Products/PageTemplates/TALES.py", line 221, in evaluate return expression(self) File "/home/www.freifunk.net/zope-2.7.8_plone2.1/lib/python/Products/PageTemplates/ZRPythonExpr.py", line 47, in __call__ return eval(code, g, {}) File "Python expression "here.isSubscriber(email)"", line 1, in File "/home/www.freifunk.net/freifunk-instance_plone2.1/Products/ZWiki/Mail.py", line 198, in isSubscriber email = self.emailAddressFrom(subscriber) File "/home/www.freifunk.net/freifunk-instance_plone2.1/Products/ZWiki/Mail.py", line 383, in emailAddressFrom return getattr( AttributeError: _members

The line to (getToolByName(self,portal_membership).getMemberById(subscriber)), email, None)

helps.

my version is 0.52, for CMFMember? it is also the latest 1.1betasomething.


comments:

fixed for 0.52.1 --simon, Sat, 08 Apr 2006 08:26:43 -0700 reply
Severity: normal => serious Status: open => closed

Thanks Jens, a fix (good enough for now) has been checked in to darcs, testing welcome.

... --frank, Mon, 04 Dec 2006 06:15:11 -0800 reply
Name: #1239 shiloh => #1239 Subscribeform not working with CMFMember Category: user-editing-extedit => user-mail Severity: critical => serious Status: open => closed