[Erp5-dev] ep5-consulting: problem with listing actors

Bartłomiej Górny bartek at erp5.pl
Sat Dec 16 14:00:40 CET 2006


Hello

I installed erp5_consulting, try to enter use cases - when I enter an actor, 
and try to view the UseCase_viewUseCaseActorList form, I get the following 
error:

Error Type: CompilerError
Error Value: Invalid variable name "[]" 

I upgraded the source code, erp5_xhtml and erp5_consulting to the latest 
versions, but it didn't help.

This is the traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.ERP5Form.Form, line 364, in __call__
  Module Products.ERP5Form.Form, line 382, in __call__
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - <ZopePageTemplate at /erp5/form_view used 
for /erp5/UseCase_viewUseCaseActorList>
  Module TAL.TALInterpreter, line 190, in __call__
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 650, in do_defineMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 460, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: /erp5/field_render
   - Line 33, Column 4
   - Expression: <PythonExpr field.render_htmlgrid(value, request)>
   - Names:
      {'container': <Folder at /erp5/use_case_module>,
       'context': <Document at /erp5/use_case_module/1>,
       'default': <Products.PageTemplates.TALES.Default instance at 
0xb6b27f0c>,
       'form': <ERP5Form at /erp5/UseCase_viewUseCaseActorList used 
for /erp5/use_case_module/1>,
       'here': <Document at /erp5/use_case_module/1>,
       'loop': <SafeMapping instance at afc28020>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0xb6b01f2c>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <SafeMapping instance at afc28020>,
       'request': <HTTPRequest, 
URL=http://erpik:9082/erp5/use_case_module/1/UseCase_viewUseCaseActorList>,
       'root': <Application instance at b104df20>,
       'template': <ERP5Form at /erp5/UseCase_viewUseCaseActorList used 
for /erp5/use_case_module/1>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: field.render_htmlgrid(value, request)
  Module Python expression "field.render_htmlgrid(value, request)", line 1, in 
<expression>
  Module Products.ERP5Form.FormulatorPatch, line 1120, in 
Field_render_htmlgrid
   - __traceback_info__: key=None value=None
  Module Products.ERP5Form.FormulatorPatch, line 1128, in 
Widget_render_htmlgrid
  Module Products.ERP5Form.FormulatorPatch, line 89, in Field_render_helper
   - __traceback_info__: key=field_listbox value=None
  Module Products.ERP5Form.ListBox, line 357, in render
  Module Products.ERP5Form.ListBox, line 385, in render
  Module Products.ERP5Form.ListBox, line 1660, in __call__
  Module Products.ERP5Form.ListBox, line 2122, in render
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 106, in _exec
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - <PageTemplateFile at /erp5/UseCase_viewUseCaseActorList/listbox/asHTML>
  Module TAL.TALInterpreter, line 190, in __call__
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 611, in do_loop_tal
  Module Products.PageTemplates.TALES, line 206, in setRepeat
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: asHTML
   - Line 292, Column 16
   - Expression: standard:'line/render'
   - Names:
      {'container': <ListBoxRendererContext instance at b0499ef0>,
       'context': <ListBoxRendererContext instance at b0499ef0>,
       'default': <Products.PageTemplates.TALES.Default instance at 
0xb6b27f0c>,
       'here': <ListBoxRendererContext instance at b0499ef0>,
       'loop': <SafeMapping instance at b04d5f80>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0xb6b01f2c>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <SafeMapping instance at b04d5f80>,
       'request': <HTTPRequest, 
URL=http://erpik:9082/erp5/use_case_module/1/UseCase_viewUseCaseActorList>,
       'root': <Application instance at b104df20>,
       'template': <PageTemplateFile 
at /erp5/UseCase_viewUseCaseActorList/listbox/asHTML>,
       'traverse_subpath': [],
       'user': bartek}
  Module Products.PageTemplates.Expressions, line 174, in __call__
  Module Products.PageTemplates.Expressions, line 169, in _eval
  Module Products.PageTemplates.Expressions, line 74, in render
  Module Products.ERP5Form.ListBox, line 1890, in render
  Module Products.ERP5Form.ListBox, line 1828, in getValueList
  Module Products.ERP5Type.Base, line 855, in getProperty
  Module Products.ERP5Type.Accessor.Category, line 178, in __call__
  Module Products.ERP5Type.Accessor.Category, line 181, in __call__
  Module Products.ERP5Type.Base, line 1609, in 
_getAcquiredCategoryMembershipList
  Module Products.CMFCategory.CategoryTool, line 1027, in 
getAcquiredCategoryMembershipList
  Module Products.CMFCategory.CategoryTool, line 1045, in 
getAcquiredCategoryMembershipList
  Module Products.CMFCategory.CategoryTool, line 773, in 
getSingleCategoryAcquiredMembershipList
  Module Products.CMFCategory.CategoryTool, line 786, in 
getSingleCategoryAcquiredMembershipList
  Module Products.CMFCategory.CategoryTool, line 794, in 
_getSingleCategoryAcquiredMembershipList
  Module Products.CMFCategory.CategoryTool, line 910, in 
_getSingleCategoryAcquiredMembershipList
  Module Products.ERP5Type.Accessor.List, line 260, in __call__
  Module Products.ERP5Type.Accessor.List, line 272, in __call__
  Module Products.ERP5Type.Cache, line 190, in __call__
  Module Products.ERP5Type.Accessor.Base, line 103, in _evaluateTales
  Module Products.CMFCore.Expression, line 36, in __init__
  Module Products.PageTemplates.TALES, line 135, in compile
  Module Products.PageTemplates.Expressions, line 135, in __init__
  Module Products.PageTemplates.Expressions, line 85, in __init__
CompilerError: Invalid variable name "[]"

Any idea what goes wrong?

Bartek



More information about the Erp5-dev mailing list