Nuxeo mailing list archives
[CPS-devel] Method Vocabulary in a Generic Multiselect Widget
Jose Jiménez López
jose.jimenez at iavante.es
Tue Sep 26 10:14:44 CEST 2006
Hello,
When i try to show the result of a Method Vocabulary in a Generic
MultiSelect Widget in 'view' mode, it returns an error. The last lines
of the traceback are these:
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: dir.renderEntryDetailed(id)
Module Python expression "dir.renderEntryDetailed(id)", line 1, in
<expression>
Module Products.CPSDirectory.BaseDirectory, line 562, in
renderEntryDetailed
Module Products.CPSDirectory.BaseDirectory, line 932, in _renderLayout
Module Products.CPSSchemas.Layout, line 391, in renderLayoutStructure
Module Products.CPSSchemas.ExtendedWidgets, line 1172, in render
Module cgi, line 1039, in escape
AttributeError: 'list' object has no attribute 'replace'
My Method Vocabulary returns some like this:
[('Member', u'Member'), ('Administrator', u'Administrator')]
In 'edit' mode the widget shows correctly, but in 'view' mode it crashes.
I saw the code in ExtendedWidgets.py and i read this "# XXX customize
view mode, lots of displays are possible" at line 1167. Does it mean
that i have to customize a new mode for my application?
Thanks
--
*Jose Jiménez López*
**Becario de Sistemas**
FUNDACIÓN IAVANTE
jose.jimenez at iavantefundacion.com
Tel. 958 00 22 63
Este correo electrónico y, en su caso, cualquier fichero anexo, contiene
información confidencial exclusivamente dirigida a su(s)
destinatario(s). Toda copia o divulgación deberá ser autorizada por IAVANTE.
This e-mail and any attachments are confidential and exclusively
directed to its adressee(s). Any copy or distribution will have to be
authorized by IAVANTE.
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.