[Zope-CMF] Tales expressions in formulator not seeing CMF?
Colin Leath
cleath@j9k.org
Fri, 24 Jan 2003 18:46:18 -0500 (EST)
When I use the following:
form/portal_membership/getAuthenticatedMember
in a formulator TALES expression,
I get the error below.
(MemberDataError: Can't find user data)
Is there any way to get around this problem (write a python script?)
or will I have to layout my form manually in a ZPT? (not so bad)
Thanks!
Colin
Traceback (innermost last):
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Shared.DC.Scripts.Bindings, line 252, in __call__
Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
Module Products.PageTemplates.ZopePageTemplate, line 228, in _exec
Module Products.PageTemplates.PageTemplate, line 95, in pt_render
- <ZopePageTemplate at /cfc/support.html>
Module TAL.TALInterpreter, line 186, in __call__
Module TAL.TALInterpreter, line 230, in interpret
Module TAL.TALInterpreter, line 655, in do_condition
Module TAL.TALInterpreter, line 230, in interpret
Module TAL.TALInterpreter, line 622, in do_loop_tal
Module TAL.TALInterpreter, line 230, in interpret
Module TAL.TALInterpreter, line 578, in do_insertStructure_tal
Module Products.PageTemplates.TALES, line 217, in evaluate
- URL: /cfc/support.html
- Line 267, Column 21
- Expression: standard:'item/render'
- Names:
{'container': <CMFSite instance at 01E026D0>,
'default': <Products.PageTemplates.TALES.Default instance at
00EB4484>,
'here': <CMFSite instance at 01E026D0>,
'loop': <SafeMapping instance at 01566438>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
00EB5B6C>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at 01566438>,
'request': <HTTPRequest,
URL=http://localhost:8080/cfc/support.html>,
'root': <Application instance at 01F40328>,
'template': <ZopePageTemplate at /cfc/support.html>,
'traverse_subpath': [],
'user': colin}
Module Products.PageTemplates.Expressions, line 206, in __call__
Module Products.PageTemplates.Expressions, line 201, in _eval
Module Products.PageTemplates.Expressions, line 108, in render
Module Products.Formulator.Field, line 177, in render
Module Products.Formulator.Field, line 155, in _render_helper
Module Products.Formulator.Widget, line 141, in render
Module Products.Formulator.Widget, line 716, in render_element
Module Products.Formulator.Widget, line 705, in render_tag
Module Products.CMFCore.MemberDataTool, line 315, in __str__
Module Products.CMFCore.MemberDataTool, line 223, in getMemberId
Module Products.CMFCore.MemberDataTool, line 214, in getUser
MemberDataError: Can't find user data