Hello, yesterday I opened a ticket reporting a problem using CPSTypeMaker: http://svn.nuxeo.org/trac/pub/ticket/1159
As suggested by Florent Guillaume I tried removing the following line from cpstypes_edit.pt: wttool here/portal_widget_types; Unfortunately after removing that line I got the following error: Request URL http://localhost:8080/cps/cpstypes_edit Exception Type TypeError Exception Value listWidgetTypes() got an unexpected keyword argument 'transated' 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 188, in _exec * Module Products.CMFCore.FSPageTemplate, line 127, in pt_render * Module Products.PageTemplates.PageTemplate, line 104, in pt_render <FSPageTemplate at /cps/cpstypes_edit> * Module TAL.TALInterpreter, line 206, in __call__ * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 477, in do_setLocal_tal * Module Products.PageTemplates.TALES, line 221, in evaluate URL: file:CPSTypeMaker/skins/cps_typemaker/cpstypes_edit.pt Line 1, Column 0 Expression: <PythonExpr tmakertool.listWidgetTypes(transated=True)> Names: {'container': <CPSDefaultSite at /cps>, 'context': <CPSDefaultSite at /cps>, 'default': <Products.PageTemplates.TALES.Default instance at 0xb761f94c>, 'here': <CPSDefaultSite at /cps>, 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb2e8e86c>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb763184c>, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb2e8e86c>, 'request': <HTTPRequest, URL=http://localhost:8080/cps/cpstypes_edit>, 'root': <Application at >, 'template': <FSPageTemplate at /cps/cpstypes_edit>, 'traverse_subpath': [], 'user': manager} * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ __traceback_info__: tmakertool.listWidgetTypes(transated=True) * Module Python expression "tmakertool.listWidgetTypes(transated=True)", line 1, in <expression> TypeError: listWidgetTypes() got an unexpected keyword argument 'transated' I tried then to remove from the same template the following line: widget_meta_types python:tmakertool.listWidgetTypes(transated=True); and I got the following error: Request URL http://localhost:8080/cps/cpstypes_edit Exception Type KeyError Exception Value 'widget_meta_types' 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 188, in _exec * Module Products.CMFCore.FSPageTemplate, line 127, in pt_render * Module Products.PageTemplates.PageTemplate, line 104, in pt_render <FSPageTemplate at /cps/cpstypes_edit> * Module TAL.TALInterpreter, line 206, in __call__ * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 711, in do_useMacro * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 677, in do_condition * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 711, in do_useMacro * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 677, in do_condition * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 653, in do_loop_tal * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 653, in do_loop_tal * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 677, in do_condition * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 653, in do_loop_tal * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 677, in do_condition * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 415, in do_optTag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 677, in do_condition * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 677, in do_condition * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 734, in do_defineSlot * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 734, in do_defineSlot * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 711, in do_useMacro * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 426, in do_optTag_tal * Module TAL.TALInterpreter, line 411, in do_optTag * Module TAL.TALInterpreter, line 406, in no_tag * Module TAL.TALInterpreter, line 250, in interpret * Module TAL.TALInterpreter, line 651, in do_loop_tal * Module Products.PageTemplates.TALES, line 206, in setRepeat * Module Products.PageTemplates.TALES, line 221, in evaluate URL: file:CPSTypeMaker/skins/cps_typemaker/cpstypes_lib.pt Line 119, Column 14 Expression: standard:'widget_meta_types' Names: {'container': <CPSDefaultSite at /cps>, 'context': <CPSDefaultSite at /cps>, 'default': <Products.PageTemplates.TALES.Default instance at 0xb766694c>, 'here': <CPSDefaultSite at /cps>, 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb2ed586c>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb767884c>, 'nothing': None, 'options': {'args': ()}, 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb2ed586c>, 'request': <HTTPRequest, URL=http://localhost:8080/cps/cpstypes_edit>, 'root': <Application at >, 'template': <FSPageTemplate at /cps/cpstypes_edit>, 'traverse_subpath': [], 'user': manager} * Module Products.PageTemplates.Expressions, line 185, in __call__ * Module Products.PageTemplates.Expressions, line 173, in _eval * Module Products.PageTemplates.Expressions, line 123, in _eval __traceback_info__: widget_meta_types KeyError: 'widget_meta_types' Removing the tal block referring to the widget_meta_types from cpstypes_lib.pt (lines 119-123) brings back the edit form but obviously isn't anymore possible to choose the widget type. Does anybody have an idea how to fix this problem? Thank you, Stefano _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
