[CPS-users-fr] Content Portlet - Personnalisation

Julien Fays julien.fays at gmail.com
Mer 21 Fév 11:25:06 CET 2007


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


Traceback:

*KeyError*
Sorry, a site error occurred.

Traceback (innermost last):

   - Module ZPublisher.Publish, line 194, in publish_module_standard

.................................................
.................................................

   - 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="/cpsTest/attachedfile_icon.png"
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=http://gnx2434.gnb.st.com:8080/cpsTest/sections/bbb/folder_view>,
    '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')
-------------- section suivante --------------
Une pièce jointe HTML a été enlevée...
URL: http://lists.nuxeo.com/pipermail/cps-users-fr/attachments/20070221/4fe9f10e/attachment.htm


Plus d'informations sur la liste de diffusion cps-users-fr

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.