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
[EMAIL PROTECTED]
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.
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel