Nuxeo mailing list archives
[Nuxeo-tickets] [Nuxeo Repository] #1735: content portlet crashes
if render=yes
Nuxeo Repository
trac at nuxeo.com
Wed Aug 30 12:03:52 CEST 2006
#1735: content portlet crashes if render=yes
-------------------------+--------------------------------------------------
Reporter: tracguest | Owner: jmorliaguet
Type: defect | Status: new
Priority: P2 | Milestone:
Component: CPSPortlets | Version: 3.4.2
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
I placed a content portlet in a section to display all news articles. If
render=no it works fine but if render=yes it crashes:
{{{
Site Error
An error was encountered while publishing this resource.
AttributeError
Sorry, a site error occurred.
Traceback (innermost last):
Module ZPublisher.Publish, line 194, in publish_module_standard
Module Products.Localizer, line 58, in new_publish
Module ZPublisher.Publish, line 146, in publish
Module Zope2.App.startup, line 222, in zpublisher_exception_hook
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Shared.DC.Scripts.Binsites, line 311, in __call__
Module Shared.DC.Scripts.Binsites, 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 /site/folder_view used for /site/sections/neuigkeiten>
Module TAL.TALInterpreter, line 238, in __call__
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 728, in do_defineMacro
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 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: file:CPSSkins/skins/CPSSkins/cpsskins_main_template_default.pt
Line 41, 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 /site used for /site>,
'context': <ProxyFolder at /site/sections/neuigkeiten>,
'default': <Products.PageTemplates.TALES.Default instance at 0x40d6da2c>,
'here': <ProxyFolder at /site/sections/neuigkeiten>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x478c012c>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x40d9b90c>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x478c012c>,
'request': <HTTPRequest,
URL=https://machine/site/site/sections/neuigkeiten/folder_view>,
'root': <Application at >,
'template': <FSPageTemplate at /site/folder_view used for
/site/sections/neuigkeiten>,
'traverse_subpath': [],
'user': <CPSUser designer>}
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 315, in render_cache
Module Products.CPSSkins.PortalBoxGroup, line 259, in render
Module Products.CPSPortlets.CPSPortlet, line 543, in render_cache
Module Products.CPSDocument.CPSDocument, line 68, in render
Module Products.CPSDocument.FlexibleTypeInformation, line 753, in
renderObject
Module Products.CPSDocument.FlexibleTypeInformation, line 715, in
_renderLayouts
Module Products.CPSSchemas.Layout, line 391, in renderLayoutStructure
Module Products.CPSPortlets.CPSPortletWidget, line 78, in render
Module Shared.DC.Scripts.Binsites, line 311, in __call__
Module Shared.DC.Scripts.Binsites, 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 /site/widget_portlet_content used for
/site/portal_layouts/content_portlet/w__portlet>
Module TAL.TALInterpreter, line 238, in __call__
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: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 /site>,
'context': <CPSPortletWidget at
/site/portal_layouts/content_portlet/w__portlet>,
'default': <Products.PageTemplates.TALES.Default instance at 0x40d6da2c>,
'here': <CPSPortletWidget at
/site/portal_layouts/content_portlet/w__portlet>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x47931dac>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x40d9b90c>,
'nothing': None,
'options': {'args': (),
'boxedit': None,
'context_obj': <ProxyFolder at /site/sections/neuigkeiten>,
'datastructure': {'query_title': '', 'folder_path':
'sections/neuigkeiten', 'Title': 'Alle Neuigkeiten', 'cluster_id': '',
'max_items': '5', 'Description': '', 'show_icons': False, 'sort_on':
'Date', 'display_description': True, 'visibility_range': [0, 1],
'syndication_formats': [], 'portlet': '', 'short_syndication_formats':
False, 'link_string': '>>', 'render_items': True, 'render_method': '',
'searchable_types': ['News Item'], 'contextual': False,
'disable_override': False, 'slot_override': False, 'search_type': 'all',
'sort_reverse': True, 'max_words': '0'},
'layout_mode': 'view',
'mode': 'view',
'options': {'args': ()},
'portlet': <CPSPortlet at
/site/sections/neuigkeiten/.cps_portlets/portlet_735647510>,
'template': <FSPageTemplate at /site/folder_view used for
/site/sections/neuigkeiten>,
'widget_infos': {'cluster_id': {'widget': <CPSStringWidget at
/site/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 /site/portal_layouts/content_portlet/w__contextual>,
'widget_css_class': '',
'widget_input_area_id': None,
'widget_javascript': '',
'widget_mode': 'hidden'},
'display_description': {'widget':
<CPSBooleanWidget at
/site/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 /site/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 /site/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
/site/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
/site/portal_layouts/content_portlet/w__max_words>,
'widget_css_class': '',
'widget_input_area_id': None,
'widget_javascript': '',
'widget_mode': 'hidden'},
'portlet': {'widget': <CPSPortletWidget at
/site/portal_layouts/content_portlet/w__portlet>,
'widget_css_class': '',
'widget_input_area_id': None,
'widget_javascript': '',
'widget_mode': 'view'},
'query_title': {'widget': <CPSStringWidget
at /site/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 /site/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 /site/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 /site/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
/site/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
/site/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 /site/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
/site/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 /site/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
/site/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
0x47931dac>,
'request': <HTTPRequest,
URL=https://machine/site/site/sections/neuigkeiten/folder_view>,
'root': <Application at >,
'template': <FSPageTemplate at /site/widget_portlet_content used for
/site/portal_layouts/content_portlet/w__portlet>,
'traverse_subpath': [],
'user': <CPSUser designer>}
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.Binsites, line 311, in __call__
Module Shared.DC.Scripts.Binsites, line 348, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 164, in _exec
Module None, line 268, in getContentItems
<FSPythonScript at /site/getContentItems used for
/site/portal_layouts/content_portlet/w__portlet>
Line 268
Module Products.CPSDocument.CPSDocument, line 68, in render
Module Products.CPSDocument.FlexibleTypeInformation, line 753, in
renderObject
Module Products.CPSDocument.FlexibleTypeInformation, line 715, in
_renderLayouts
Module Products.CPSSchemas.Layout, line 391, in renderLayoutStructure
Module Products.CPSSchemas.BasicWidgets, line 2197, in render
Module Shared.DC.Scripts.Binsites, line 311, in __call__
Module Shared.DC.Scripts.Binsites, 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 /site/widget_byline_render used for
/site/portal_layouts/common/w__Byline>
Module TAL.TALInterpreter, line 238, in __call__
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 507, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:CPSSchemas/skins/cps_schemas/widget_byline_render.pt
Line 10, Column 2
Expression: <PythonExpr (here_url !=
utool.getPortalObject().absolute_url()) and doc.getContentInfo(proxy=doc,
level=2) or None>
Names:
{'container': <CPSDefaultSite at /site>,
'context': <CPSBylineWidget at /site/portal_layouts/common/w__Byline>,
'default': <Products.PageTemplates.TALES.Default instance at 0x40d6da2c>,
'here': <CPSBylineWidget at /site/portal_layouts/common/w__Byline>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x47955a8c>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x40d9b90c>,
'nothing': None,
'options': {'args': (),
'mode': 'view',
'value': <ProxyDocument at /site/sections/neuigkeiten
/neuigkeiten-fur/goo-portal-version-0-0>},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x47955a8c>,
'request': <HTTPRequest,
URL=https://machine/site/site/sections/neuigkeiten/folder_view>,
'root': <Application at >,
'template': <FSPageTemplate at /site/widget_byline_render used for
/site/portal_layouts/common/w__Byline>,
'traverse_subpath': [],
'user': <CPSUser designer>}
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: (here_url != utool.getPortalObject().absolute_url())
and doc.getContentInfo(proxy=doc, level=2) or None
Module Python expression "(here_url !=
utool.getPortalObject().absolute_url()) and doc.getContentInfo(proxy=doc,
level=2) or None", line 1, in <expression>
AttributeError: getContentInfo (Also, the following error occurred while
attempting to render the standard error message, please see the event log
for full details: getContentInfo)
Troubleshooting Suggestions
The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the error
log.
If the error persists please contact the site maintainer. Thank you for
your patience.
}}}
--
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1735>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
More information about the Nuxeo-tickets
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.