Discussion:
[Erp5-dev] ep5-consulting: problem with listing actors
Bartłomiej Górny
2006-12-16 13:00:40 UTC
Permalink
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
Bartłomiej Górny
2006-12-16 13:51:10 UTC
Permalink
Post by Bartłomiej Górny
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
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.
I found out that if I set use_case_actor_role on the actor manually, then it
works, but only then. So it crashes if role is not set on the actor, or also
if it is set from the UseCase_viewUseCaseActorList form.

B.
Post by Bartłomiej Górny
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)>
{'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>,
<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'
{'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>,
<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
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
Pelletier Vincent
2006-12-18 09:37:55 UTC
Permalink
Post by Bartłomiej Górny
Post by Bartłomiej Górny
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
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.
I found out that if I set use_case_actor_role on the actor manually, then
it works, but only then. So it crashes if role is not set on the actor, or
also if it is set from the UseCase_viewUseCaseActorList form.
B.
Hi.

I found a quick fix for this problem :
go to portal_categories/use_case_actor_role and click 'save'.

This is because Acquisition Portal Types is actually not set, but the value
displayed in the field is valid, unlike the defautl value defined in the
property sheet.
I'll keep searching for The Good Solution and commit it.
--
Vincent Pelletier
Loading...