On Sep 26, 2006, at 10:14 AM, Jose Jiménez López wrote:
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')]
Another issue (unless you're working on top of CPS4): you shouldn't
have unicode there.
---------
Georges Racinet Nuxeo SAS
[EMAIL PROTECTED] http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel