Nuxeo mailing list archives
[CPS-users-fr] CPSSchemas.Layout
Cedric Marfil
cedric.marfil at capgemini.com
Mar 26 Sep 10:57:29 CEST 2006
Bonjour,
J'avais besoin dans un de mes Widgets spécifiques d'avoir accès, dans la méthode 'prepare', à la méthode '_createExpressionContext' qui nécessite le paramètre mode. Celui-ci fait partie des 'kw' passés à la méthode 'prepareLayoutWidgets' du layout, mais les 'kw' n'était pas passés à chaque widget. J'ai simplement modifié l'appel à la méthode 'prepare' de chacun des widgets comme ceci:
try:
widget.prepare(datastructure, **kw)
except ReadAccessError:
dm._forbidden_widgets.append(widget_id)
Est-ce la bonne façon de faire ?
Si oui, peut-on intégrer ces changements à CPS ?
Si non, comment faut-il faire ?
Cordialement
--------------------------------------------------------------------------------
Cédric Marfil
Concepteur Réalisateur Intégrateur Confirmé
Tél. direct: 03.20.65.34.82
Mail: cedric.marfil at capgemini.com
Capgemini
181 rue Jules Delcenserie
59700 Marcq en Baroeul
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
-------------- section suivante --------------
Une pièce jointe HTML a été enlevée...
URL: http://lists.nuxeo.com/pipermail/cps-users-fr/attachments/20060926/f5bb1d8d/attachment.html
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.