Nuxeo mailing list archives
[CPS-devel] Method Vocabulary in a Generic Multiselect Widget
Georges Racinet
gracinet at nuxeo.com
Wed Sep 27 15:21:39 CEST 2006
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
gracinet at nuxeo.com http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.