Hi,
I have upgrade my LDAPSetup installation and my CPSDirectory (version
nightly builds).
I have now this directories in my rep cps/directories :
members (label_members)
members_cps_fields
members_ldap
members_stack
members_zodb
So i have to add some fields to my members infos. I put a string field
in my members_cps_field an when i want to see members info i got an
error:
Error Type: KeyError
Error Value:
'test'
Traceback:
Traceback (innermost last):
* Module ZPublisher.Publish, line 113, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 195, in _exec
* Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<FSPageTemplate at /cps/cpsdirectory_entry_view>
* Module TAL.TALInterpreter, line 238, in __call__
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 715, in do_condition
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 715, in do_condition
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 691, in do_loop_tal
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 691, in do_loop_tal
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 715, in do_condition
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 691, in do_loop_tal
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 507, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: /cps/cpsskins_main_template_default
Line 42, Column 16
Expression: <PythonExpr isRenderable and
content.render_cache(shield=shield, context_obj=context_obj,
enable_esi=enable_esi, boxedit=boxedit, template=template,
options=options)>
Names:
{'container': <CPSDefaultSite at /cps>,
'context': <CPSDefaultSite at /cps>,
'default': <Products.PageTemplates.TALES.Default instance at 0x014C7CD8>,
'here': <CPSDefaultSite at /cps>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x05C8EEB8>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x014BC288>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x05C8EEB8>,
'request': <HTTPRequest, URL=http://albator/cps/cpsdirectory_entry_view>,
'root': <Application at >,
'template': <FSPageTemplate at /cps/cpsdirectory_entry_view>,
'traverse_subpath': [],
'user': <User 'seternal'>}
* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: isRenderable and
content.render_cache(shield=shield, context_obj=context_obj,
enable_esi=enable_esi, boxedit=boxedit, template=template,
options=options)
* Module Python expression "isRenderable and
content.render_cache(shield=shield, context_obj=context_obj,
enable_esi=enable_esi, boxedit=boxedit, template=template,
options=options)", line 1, in <expression>
* Module Products.CPSSkins.PortalBoxGroup, line 313, in render_cache
* Module Products.CPSSkins.PortalBoxGroup, line 258, in render
* Module Products.CPSPortlets.CPSPortlet, line 487, in render_cache
* Module Products.CPSDocument.CPSDocument, line 68, in render
* Module Products.CPSDocument.FlexibleTypeInformation, line 752,
in renderObject
* Module Products.CPSDocument.FlexibleTypeInformation, line 714,
in _renderLayouts
* Module Products.CPSSchemas.Layout, line 391, in renderLayoutStructure
* Module Products.CPSSchemas.BasicWidgets, line 2045, in render
* Module Products.CPSPortlets.PortletWidgets.MainContentWidget,
line 27, in renderMainContent
* Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<FSPageTemplate at /cps/cpsdirectory_entry_view>
* Module TAL.TALInterpreter, line 238, in __call__
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 772, in do_defineSlot
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 507, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:CPSDirectory/skins/cps_directory/cpsdirectory_entry_view.pt
Line 25, Column 2
Expression: <PythonExpr dir.renderEntryDetailed(id)>
Names:
{'container': <CPSDefaultSite at /cps>,
'context': <CPSDefaultSite at /cps>,
'default': <Products.PageTemplates.TALES.Default instance at 0x014C7CD8>,
'here': <CPSDefaultSite at /cps>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x05E17DA0>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x014BC288>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x05E17DA0>,
'request': <HTTPRequest, URL=http://albator/cps/cpsdirectory_entry_view>,
'root': <Application at >,
'template': <FSPageTemplate at /cps/cpsdirectory_entry_view>}
* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: dir.renderEntryDetailed(id)
* Module Python expression "dir.renderEntryDetailed(id)", line 1,
in <expression>
* Module Products.CPSDirectory.BaseDirectory, line 566, in
renderEntryDetailed
* Module Products.CPSDirectory.BaseDirectory, line 896, in _getDataModel
* Module Products.CPSSchemas.DataModel, line 263, in _fetch
* Module Products.CPSDirectory.MetaDirectory, line 643, in getData
* Module Products.CPSDirectory.MetaDirectory, line 605, in
_getEntryFromBacking
KeyError: 'test'
ps: my field's name is test.
Is this error normal?
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel