Hello,
after upgrading to the latest svn from a checkout about a week old, I
started getting errors with content portlets.
After deactivating the crash guard shield I was able to get the
following traceback:

Site Error

An error was encountered while publishing this resource.

TypeError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 187, in publish_module_standard
    * Module Products.Localizer, line 60, in new_publish
    * Module ZPublisher.Publish, line 144, in publish
    * Module Products.CPSCompat.PatchPublisherConflictErrors, line
100, in zpublisher_exception_hook
    * 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/folder_view used for /cps/sections/test>
    * Module TAL.TALInterpreter, line 206, in __call__
    * Module TAL.TALInterpreter, line 250, in interpret
    * Module TAL.TALInterpreter, line 690, in do_defineMacro
    * 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 477, in do_setLocal_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: file:CPSSkins/skins/CPSSkins/cpsskins_main_template_tableless.pt
      Line 41, Column 16
      Expression: <PythonExpr isRenderable and
content.render_cache(shield=shield, context_obj=context_obj,
enable_esi=enable_esi, boxedit=boxedit)>
      Names:

{'container': <CPSDefaultSite at /cps>,
 'context': <ProxyFolder at /cps/sections/test>,
 'default': <Products.PageTemplates.TALES.Default instance at 0xb7714fec>,
 'here': <ProxyFolder at /cps/sections/test>,
 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb24fa0ac>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0xb772106c>,
 'nothing': None,
 'options': {'args': ()},
 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb24fa0ac>,
 'request': <HTTPRequest,
URL=http://localhost:8080/cps/sections/test/folder_view>,
 'root': <Application at >,
 'template': <FSPageTemplate at /cps/folder_view used for /cps/sections/test>,
 'traverse_subpath': [],
 'user': admin}

    * 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)
    * Module Python expression "isRenderable and
content.render_cache(shield=shield, context_obj=context_obj,
enable_esi=enable_esi, boxedit=boxedit)", 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 533, in render_cache
    * Module Products.CPSDocument.CPSDocument, line 63, in render
    * Module Products.CPSDocument.FlexibleTypeInformation, line 869,
in renderObject
    * Module Products.CPSDocument.FlexibleTypeInformation, line 840,
in _renderLayouts
    * Module Products.CPSSchemas.Layout, line 387, in renderLayoutStructure
    * Module Products.CPSPortlets.CPSPortletWidget, line 78, in render
    * 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/widget_portlet_content used for
/cps/portal_layouts/content_portlet/w__portlet>
    * 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:CPSPortlets/skins/cpsportlets_widgets/widget_portlet_content.pt
      Line 1, Column 0
      Expression: <PythonExpr here.getContentItems(obj=context,
get_metadata=get_metadata, **dict(ds))>
      Names:

{'container': <CPSDefaultSite at /cps>,
 'context': <CPSPortletWidget at
/cps/portal_layouts/content_portlet/w__portlet>,
 'default': <Products.PageTemplates.TALES.Default instance at 0xb7714fec>,
 'here': <CPSPortletWidget at /cps/portal_layouts/content_portlet/w__portlet>,
 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb2c7ecec>,
 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0xb772106c>,
 'nothing': None,
 'options': {'args': (),
             'boxedit': None,
             'context_obj': <ProxyFolder at /cps/sections/test>,
             'datastructure': {'query_title': '', 'folder_path': '',
'Title': 'Prova 2', 'cluster_id': '', 'max_items': '5', 'Description':
'', 'show_icons': False, 'sort_on': 'Title', 'display_description':
True, 'visibility_range': [0, 0], 'syndication_formats': [],
'portlet': '', 'short_syndication_formats': False, 'link_string':
'&gt;&gt;', 'render_items': True, 'render_method': '',
'searchable_types': ['test'], 'contextual': False, 'disable_override':
False, 'slot_override': False, 'search_type': 'recent',
'sort_reverse': False, 'max_words': '0'},
             'layout_mode': 'view',
             'mode': 'view',
             'portlet': <CPSPortlet at
/cps/sections/test/.cps_portlets/portlet_596186420>,
             'widget_infos': {'cluster_id': {'widget':
<CPSStringWidget at
/cps/portal_layouts/content_portlet/w__cluster_id>,
                                             'widget_css_class': '',
                                             'widget_input_area_id':
'widget__cluster_id',
                                             'widget_javascript': '',
                                             'widget_mode': 'hidden'},
                              'contextual': {'widget':
<CPSBooleanWidget at
/cps/portal_layouts/content_portlet/w__contextual>,
                                             'widget_css_class': '',
                                             'widget_input_area_id': None,
                                             'widget_javascript': '',
                                             'widget_mode': 'hidden'},
                              'display_description': {'widget':
<CPSBooleanWidget at
/cps/portal_layouts/content_portlet/w__display_description>,
                                                      'widget_css_class': '',
                                                     
'widget_input_area_id': None,
                                                      'widget_javascript': '',
                                                      'widget_mode': 'hidden'},
                              'folder_path': {'widget':
<CPSStringWidget at
/cps/portal_layouts/content_portlet/w__folder_path>,
                                              'widget_css_class': '',
                                              'widget_input_area_id':
'widget__folder_path',
                                              'widget_javascript': '',
                                              'widget_mode': 'hidden'},
                              'link_string': {'widget':
<CPSStringWidget at
/cps/portal_layouts/content_portlet/w__link_string>,
                                              'widget_css_class': '',
                                              'widget_input_area_id':
'widget__link_string',
                                              'widget_javascript': '',
                                              'widget_mode': 'hidden'},
                              'max_items': {'widget': <CPSIntWidget at
/cps/portal_layouts/content_portlet/w__max_items>,
                                            'widget_css_class': '',
                                            'widget_input_area_id': None,
                                            'widget_javascript': '',
                                            'widget_mode': 'hidden'},
                              'max_words': {'widget': <CPSIntWidget at
/cps/portal_layouts/content_portlet/w__max_words>,
                                            'widget_css_class': '',
                                            'widget_input_area_id': None,
                                            'widget_javascript': '',
                                            'widget_mode': 'hidden'},
                              'portlet': {'widget': <CPSPortletWidget
at /cps/portal_layouts/content_portlet/w__portlet>,
                                          'widget_css_class': '',
                                          'widget_input_area_id': None,
                                          'widget_javascript': '',
                                          'widget_mode': 'view'},
                              'query_title': {'widget':
<CPSStringWidget at
/cps/portal_layouts/content_portlet/w__query_title>,
                                              'widget_css_class': '',
                                              'widget_input_area_id':
'widget__query_title',
                                              'widget_javascript': '',
                                              'widget_mode': 'hidden'},
                              'render_items': {'widget':
<CPSBooleanWidget at
/cps/portal_layouts/content_portlet/w__render_items>,
                                               'widget_css_class': '',
                                               'widget_input_area_id': None,
                                               'widget_javascript': '',
                                               'widget_mode': 'hidden'},
                              'render_method': {'widget':
<CPSStringWidget at
/cps/portal_layouts/content_portlet/w__render_method>,
                                                'widget_css_class': '',
                                               
'widget_input_area_id': 'widget__render_method',
                                                'widget_javascript': '',
                                                'widget_mode': 'hidden'},
                              'search_type': {'widget':
<CPSSelectWidget at
/cps/portal_layouts/content_portlet/w__search_type>,
                                              'widget_css_class': '',
                                              'widget_input_area_id':
'widget__search_type',
                                              'widget_javascript': '',
                                              'widget_mode': 'hidden'},
                              'searchable_types': {'widget':
<CPSMultiSelectWidget at
/cps/portal_layouts/content_portlet/w__searchable_types>,
                                                   'widget_css_class': '',
                                                  
'widget_input_area_id': 'widget__searchable_types',
                                                   'widget_javascript': '',
                                                   'widget_mode': 'hidden'},
                              'short_syndication_formats': {'widget':
<CPSCheckBoxWidget at
/cps/portal_layouts/content_portlet/w__short_syndication_formats>,
                                                           
'widget_css_class': '',
                                                           
'widget_input_area_id': None,
                                                           
'widget_javascript': '',
                                                           
'widget_mode': 'hidden'},
                              'show_icons': {'widget':
<CPSBooleanWidget at
/cps/portal_layouts/content_portlet/w__show_icons>,
                                             'widget_css_class': '',
                                             'widget_input_area_id': None,
                                             'widget_javascript': '',
                                             'widget_mode': 'hidden'},
                              'sort_on': {'widget': <CPSSelectWidget
at /cps/portal_layouts/content_portlet/w__sort_on>,
                                          'widget_css_class': '',
                                          'widget_input_area_id':
'widget__sort_on',
                                          'widget_javascript': '',
                                          'widget_mode': 'hidden'},
                              'sort_reverse': {'widget':
<CPSBooleanWidget at
/cps/portal_layouts/content_portlet/w__sort_reverse>,
                                               'widget_css_class': '',
                                               'widget_input_area_id': None,
                                               'widget_javascript': '',
                                               'widget_mode': 'hidden'},
                              'syndication_formats': {'widget':
<CPSMultiSelectWidget at
/cps/portal_layouts/content_portlet/w__syndication_formats>,
                                                      'widget_css_class': '',
                                                     
'widget_input_area_id': 'widget__syndication_formats',
                                                      'widget_javascript': '',
                                                      'widget_mode':
'hidden'}}},
 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb2c7ecec>,
 'request': <HTTPRequest,
URL=http://localhost:8080/cps/sections/test/folder_view>,
 'root': <Application at >,
 'template': <FSPageTemplate at /cps/widget_portlet_content used for
/cps/portal_layouts/content_portlet/w__portlet>,
 'traverse_subpath': [],
 'user': admin}

    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
      __traceback_info__: here.getContentItems(obj=context,
get_metadata=get_metadata, **dict(ds))
    * Module Python expression "here.getContentItems(obj=context,
get_metadata=get_metadata, **dict(ds))", line 1, in <expression>
    * Module AccessControl.ZopeGuards, line 341, in guarded_apply
    * Module AccessControl.ZopeGuards, line 363, in builtin_guarded_apply
    * Module Products.CMFCore.FSPythonScript, line 108, in __call__
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPythonScript, line 163, in _exec
    * Module None, line 170, in getContentItems
      <FSPythonScript at /cps/getContentItems used for
/cps/portal_layouts/content_portlet/w__portlet>
      Line 170

TypeError: int() can't convert non-string with explicit base (Also, an
error occurred while attempting to render the standard error message.)


Any ideas how to fix this?
All other portlets seems to work fine. I also tried to delete and
recreate the content portlet but I always get an error.

Thank you,
Stefano
_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to