Hello François, This list is for the development of Plone itself, please use the plone-users (General) list instead.
Thanks, Tim P.S. If you haven't already, you may want to have a look at PloneLDAP (http://plone.org/products/ploneldap) On Wed, 2008-02-20 at 09:33 -0800, François Birot wrote: > Hello, > I'm having some problems with LDAPUserFolder on Plone3. > I first had an error when trying to install LDAPUserFolder in > portal_quickinstaller (I've copied the full error at the end of the mail): > > File > "/zope/plone3-instance/instance/lib/python/plone/app/layout/viewlets/common.py", > line 177, in update > member_info = tools.membership().getMemberInfo(member.getId()) > AttributeError: getMemberInfo > > I got rid of this problem modifying the line 18 of > Products/LDAPUserFolder/LDAPMembershipTool.py : > -- from Products.CMFDefault.MembershipTool import MembershipTool > ++ from Products.CMFPlone.MembershipTool import MembershipTool > > Indeed there is no getMemberInfo function defined in > Products/CMFDefault/MembershipTool.py but the function is defined in > Products/CMFPlone/MembershipTool.py . > > I can also get rid of that error copying the definition of the function > getMemberInfo from Products/CFMPlone/MembershipTool.py to > Products/LDAPUserFolder/LDAPMembershipTool.py . > > Yet I wonder wether it is a problem of LDAPUserFolder that everybody has > with plone3, or this function should be defined in > Products/CMFDefault/MembershipTool.py > > Furthermore, even when I get rid of that problem, I also get the same errors > described by Marcelo de Moraes Serpa here : > http://www.nabble.com/Configuring-portal-acl_users-to-use-OpenLDAP---errors-td15444424s6742.html > But this is another problem, I guess. > > Does someone who use LDAPUserFolder with Plone3, could tell me if he had > this problem and check in Products/CMFDefault/MembershipTool.p if he has a > getMemberInfo function defined ? > > Thank you very much > > François Birot > > The full traceback : > -------------------- > 2008-02-20 09:52:10 ERROR root Exception while rendering an error message > Traceback (most recent call last): > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/OFS/SimpleItem.py", > line 227, in raise_standardErrorMessage > v = s(**kwargs) > File "/zope/plone3-instance/instance/Products/CMFCore/FSPythonScript.py", > line 140, in __call__ > return Script.__call__(self, *args, **kw) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/Shared/DC/Scripts/Bindings.py", > line 313, in __call__ > return self._bindAndExec(args, kw, None) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/Shared/DC/Scripts/Bindings.py", > line 350, in _bindAndExec > return self._exec(bound_data, args, kw) > File "/zope/plone3-instance/instance/Products/CMFCore/FSPythonScript.py", > line 196, in _exec > result = f(*args, **kw) > File "Script (Python)", line 34, in standard_error_message > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/Shared/DC/Scripts/Bindings.py", > line 313, in __call__ > return self._bindAndExec(args, kw, None) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/Shared/DC/Scripts/Bindings.py", > line 350, in _bindAndExec > return self._exec(bound_data, args, kw) > File "/zope/plone3-instance/instance/Products/CMFCore/FSPageTemplate.py", > line 216, in _exec > result = self.pt_render(extra_context=bound_names) > File "/zope/plone3-instance/instance/Products/CacheSetup/patch_cmf.py", > line 28, in FSPT_pt_render > return call_pattern(self, 'pt_render', > '__CacheSetup_FSPageTemplate_%s__', source, extra_context) > File "/zope/plone3-instance/instance/Products/CacheSetup/patch_utils.py", > line 9, in call_pattern > return getattr(self, pattern % __name__)(*args, **kw) > File "/zope/plone3-instance/instance/Products/CMFCore/FSPageTemplate.py", > line 155, in pt_render > result = FSPageTemplate.inheritedAttribute('pt_render')( > File "/zope/plone3-instance/instance/Products/CacheSetup/patch_cmf.py", > line 74, in PT_pt_render > return call_pattern(self, 'pt_render', '__CacheSetup_PageTemplate_%s__', > source, extra_context) > File "/zope/plone3-instance/instance/Products/CacheSetup/patch_utils.py", > line 9, in call_pattern > return getattr(self, pattern % __name__)(*args, **kw) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/Products/PageTemplates/PageTemplate.py", > line 89, in pt_render > return super(PageTemplate, self).pt_render(c, source=source) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/pagetemplate/pagetemplate.py", > line 117, in pt_render > strictinsert=0, sourceAnnotations=sourceAnnotations)() > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 271, in __call__ > self.interpret(self.program) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 346, in interpret > handlers[opcode](self, args) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 891, in do_useMacro > self.interpret(macro) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 346, in interpret > handlers[opcode](self, args) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 536, in do_optTag_tal > self.do_optTag(stuff) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 521, in do_optTag > return self.no_tag(start, program) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 516, in no_tag > self.interpret(program) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 346, in interpret > handlers[opcode](self, args) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 534, in do_optTag_tal > self.no_tag(stuff[-2], stuff[-1]) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 516, in no_tag > self.interpret(program) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 346, in interpret > handlers[opcode](self, args) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tal/talinterpreter.py", > line 745, in do_insertStructure_tal > structure = self.engine.evaluateStructure(expr) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/Products/PageTemplates/Expressions.py", > line 221, in evaluateStructure > text = super(ZopeContext, self).evaluateStructure(expr) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/tales/tales.py", > line 696, in evaluate > return expression(self) > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/Products/Five/browser/providerexpression.py", > line 34, in __call__ > provider.update() > File > "/zope/plone3-instance/installs/Zope-2.10.5-final/lib/python/zope/viewlet/manager.py", > line 104, in update > [viewlet.update() for viewlet in self.viewlets] > File > "/zope/plone3-instance/instance/lib/python/plone/app/layout/viewlets/common.py", > line 177, in update > member_info = tools.membership().getMemberInfo(member.getId()) > AttributeError: getMemberInfo > _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
