Merci pour l'explication.
J'obtiens bien a présent les détails de l'erreur. Mais ceux-ci ne me parlent
pas vraiment!
cf. le traceback en fichier joint

Si j'ai bien compris, l'erreur vient de 'datastructure'.
Ayant uniquement dupliqué le template "widget_portlet_content" et renommé
celui-ci, la "datastructure" ne devrait alors pas poser de problème?

Si quelqu'un à une piste concernant mon erreur... je suis donc preneur !

Merci d'avance,

Julien


Le 20/02/07, Georges Racinet <[EMAIL PROTECTED]> a écrit :


On Feb 20, 2007, at 10:50 AM, Julien Fays wrote:

> Bonjour,
> J'essaie actuellement de développer un site sous CPS 3.4.2, mais je
> bloque....
>
> Petite explication du problème:
> Je possède 2 sections sur mon site.
> La section "A" contient, dans des sous-sections, plusieurs
> documents à l'état "Published".
> Dans une section "B", je souhaiterai pouvoir afficher une liste des
> documents publiés dans la section "A".
>
> Jusque là, je n'ai pas rencontré de problème.
> J'ai ajouté un Content Portlet dans ma section "B", et avec le
> champ "Base folder", j'arrive à obtenir les documents publiés dans
> "A".
> Un des problèmes est que l'affichage semble limité à 20 documents.
> (si Number of Items > 20, j'obtiens une erreur).
>
> Mais le principal souçis est que je voudrais modifier l'affichage
> de ce portlet.
> Jusqu'à maintenant, en créant/modifiant des fichiers de type "Page
> template" et via le champ "Display method" du portlet, j'arrivais à
> modifier celui-ci.
> ce n'est pas le cas ici......
> J'ai dupliqué et renommé le fichier "widget_portlet_content", qui
> semble contrôler l'affichage des "content_portlet",

En effet, c'est le cas.

> mais dès que j'indique le nom de mon fichier dans le champs
> "Display method", mon portlet n'affiche plus que "!!!"

Allez en ZMI, dans portal_themes, tab Options et désactivez le crash
shield. Vous verrez alors l'erreur. C'est sans doute votre méthode
pour surcharger widget_portlet_content qui est fautive, mais ça peut
être n'importe quoi.

>
>
> En espérant que l'explication soit claire, si quelqu'un a un
> solution, je suis preneur!
> Merci d'avance,
>
> Julien
> _______________________________________________
> cps-users-fr
> Adresse de la liste : [email protected]
> Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/
> cps-users-fr>

---------
Georges Racinet,   Nuxeo SAS
Open Source Enterprise Content Management (ECM)
Web: http://www.nuxeo.com/ and http://www.nuxeo.org/ - Tel: +33 1 40
33 79 87




 

Site Error

An error was encountered while publishing this resource.

KeyError

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.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 /cpsTest/folder_view used for /cpsTest/sections/bbb>
  • 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 /cpsTest>,
     'context': <ProxyFolder at /cpsTest/sections/bbb>,
     'default': <Products.PageTemplates.TALES.Default instance at 0xb6b2df8c>,
     'here': <ProxyFolder at /cpsTest/sections/bbb>,
     'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb1cdcf6c>,
     'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb6ad658c>,
     'nothing': None,
     'options': {'args': ()},
     'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb1cdcf6c>,
     'request': <HTTPRequest, URL=""
     'root': <Application at >,
     'template': <FSPageTemplate at /cpsTest/folder_view used for /cpsTest/sections/bbb>,
     'traverse_subpath': [],
     'user': <User 'Julien FAYS'>}
  • 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.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 /cpsTest/widget_portlet_content used for /cpsTest/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 /cpsTest>,
     'context': <CPSPortletWidget at /cpsTest/portal_layouts/content_portlet/w__portlet>,
     'default': <Products.PageTemplates.TALES.Default instance at 0xb6b2df8c>,
     'here': <CPSPortletWidget at /cpsTest/portal_layouts/content_portlet/w__portlet>,
     'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb1ce2cac>,
     'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb6ad658c>,
     'nothing': None,
     'options': {'args': (),
                 'boxedit': None,
                 'context_obj': <ProxyFolder at /cpsTest/sections/bbb>,
                 'datastructure': {'query_title': '', 'folder_path': '', 'Title': 'Last Published', 'cluster_id': '', 'max_items': '5', 'Description': '', 'show_icons': True, 'sort_on': 'Title', 'display_description': False, 'visibility_range': [0, 0], 'syndication_formats': [], 'portlet': '', 'short_syndication_formats': False, 'link_string': '', 'render_items': False, 'render_method': 'widget_portlet_content', 'searchable_types': ['File'], 'contextual': False, 'disable_override': False, 'slot_override': False, 'search_type': 'last_published', 'sort_reverse': True, 'max_words': '0'},
                 'layout_mode': 'view',
                 'mode': 'view',
                 'options': {'args': ()},
                 'portlet': <CPSPortlet at /cpsTest/sections/bbb/.cps_portlets/portlet_392065873>,
                 'template': <FSPageTemplate at /cpsTest/folder_view used for /cpsTest/sections/bbb>,
                 'widget_infos': {'cluster_id': {'widget': <CPSStringWidget at /cpsTest/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 /cpsTest/portal_layouts/content_portlet/w__contextual>,
                                                 'widget_css_class': '',
                                                 'widget_input_area_id': None,
                                                 'widget_javascript': '',
                                                 'widget_mode': 'hidden'},
                                  'display_description': {'widget': <CPSBooleanWidget at /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/portal_layouts/content_portlet/w__max_words>,
                                                'widget_css_class': '',
                                                'widget_input_area_id': None,
                                                'widget_javascript': '',
                                                'widget_mode': 'hidden'},
                                  'portlet': {'widget': <CPSPortletWidget at /cpsTest/portal_layouts/content_portlet/w__portlet>,
                                              'widget_css_class': '',
                                              'widget_input_area_id': None,
                                              'widget_javascript': '',
                                              'widget_mode': 'view'},
                                  'query_title': {'widget': <CPSStringWidget at /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 /cpsTest/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 0xb1ce2cac>,
     'request': <HTTPRequest, URL=""
     'root': <Application at >,
     'template': <FSPageTemplate at /cpsTest/widget_portlet_content used for /cpsTest/portal_layouts/content_portlet/w__portlet>,
     'traverse_subpath': [],
     'user': <User 'Julien FAYS'>}
  • 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 164, in _exec
  • Module None, line 280, in getContentItems
    <FSPythonScript at /cpsTest/getContentItems used for /cpsTest/portal_layouts/content_portlet/w__portlet>
    Line 280
  • Module AccessControl.ZopeGuards, line 363, in builtin_guarded_apply
  • 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 /cpsTest/widget_portlet_content used for /cpsTest/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_: standard:'options/datastructure'
    Names:
    {'container': <CPSDefaultSite at /cpsTest>,
     'context': <CPSPortletWidget at /cpsTest/portal_layouts/content_portlet/w__portlet>,
     'default': <Products.PageTemplates.TALES.Default instance at 0xb6b2df8c>,
     'here': <CPSPortletWidget at /cpsTest/portal_layouts/content_portlet/w__portlet>,
     'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb1ce998c>,
     'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb6ad658c>,
     'nothing': None,
     'options': {'Description': '',
                 'Title': 'Last Published',
                 'args': (),
                 'brain': <Products.ZCatalog.Catalog.mybrains object at 0xb1d4ca54>,
                 'cluster_id': '',
                 'contextual': False,
                 'disable_override': False,
                 'display_description': False,
                 'folder_path': '',
                 'get_metadata': False,
                 'icon_tag': '<img src="" width="16" height="16" alt="" />',
                 'item': <CPSDocument at /cpsTest/sections/silicon-process/weeklies/project-management/q3-2006/imgprocess-w51/331277632__0001>,
                 'link_string': '',
                 'max_items': '5',
                 'max_words': '0',
                 'metadata_info': {},
                 'order': 1,
                 'portlet': '',
                 'query_title': '',
                 'render_items': False,
                 'render_method': 'widget_portlet_content',
                 'search_type': 'last_published',
                 'searchable_types': ['File'],
                 'short_syndication_formats': False,
                 'show_icons': True,
                 'slot_override': False,
                 'sort_on': 'Title',
                 'sort_reverse': True,
                 'summary': '',
                 'syndication_formats': [],
                 'visibility_range': [0, 0]},
     'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb1ce998c>,
     'request': <HTTPRequest, URL=""
     'root': <Application at >,
     'template': <FSPageTemplate at /cpsTest/widget_portlet_content used for /cpsTest/portal_layouts/content_portlet/w__portlet>,
     'traverse_subpath': [],
     'user': <User 'Julien FAYS'>}
  • Module Products.PageTemplates.Expressions, line 185, in __call__
  • Module Products.PageTemplates.Expressions, line 173, in _eval
  • Module Products.PageTemplates.Expressions, line 127, in _eval
    __traceback_info__: options
  • Module Products.PageTemplates.Expressions, line 308, in restrictedTraverse
    __traceback_info__: {'path': ['datastructure'], 'TraversalRequestNameStack': []}
KeyError: 'datastructure' (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: 'datastructure')


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 error log.

If the error persists please contact the site maintainer. Thank you for your patience.

_______________________________________________
cps-users-fr 
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>

Répondre à