[CPS-devel] troubleshooting with member fields

Dragos Ivan div at nuxeo.com
Tue Apr 11 10:14:00 CEST 2006


lopez adrian wrote:

> Hello,
> I have a problem, i want to add a picture to members so i did that :
>
> - i had a CPS Image field in */ <http://albator/manage_workspace>cps 
> <http://albator/cps/manage_workspace>/portal_schemas 
> <http://albator/cps/portal_schemas/manage_workspace>/ members 
> <http://albator/cps/portal_schemas/members/manage_workspace>
> - i had a Image Widget in **/ <http://albator/manage_workspace>cps 
> <http://albator/cps/manage_workspace>/portal_layouts 
> <http://albator/cps/portal_layouts/manage_workspace> /members 
> <http://albator/cps/portal_layouts/members/manage_workspace>
> - i change the layout
>
> when i go in editing mode of member data, there is no problem, but 
> when i go in view mode i have this error:
> *
>
>     * *Expression: <PythonExpr dir.renderEntryDetailed(id)>*
>       *Names:*
>
>{'container': <CPSDefaultSite at /cps>,
> 'context': <CPSDefaultSite at /cps>,
> 'default': <Products.PageTemplates.TALES.Default instance at 0x014CD490>,
> 'here': <CPSDefaultSite at /cps>,
>
> 'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x0753A698>,
> 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x014BAA08>,
> 'nothing': None,
> 'options': {'args': ()},
>
> 'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x0753A698>,
> 'request': <HTTPRequest, URL=http://albator/cps/cpsdirectory_entry_view
>>,
> 'root': <Application at >,
> 'template': <FSPageTemplate at /cps/cpsdirectory_entry_view>,
> 'traverse_subpath': [],
> 'user': <CPSUser seternal>}
>
>     * 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.BasicWidgets, line 1775, in render
>     * Module Products.CPSSchemas.BasicWidgets, line 1612, in getFileInfo
>
> TypeError: _getContentUrl() takes exactly 4 arguments (3 given)
>
>
> The same error occur when i want to add a file field...
>
> what can i do to fix that problem?
>
> regards,
>
> Adrian Lopez

There's already a bug report on this: 
https://svn.nuxeo.org/trac/pub/ticket/1557
It will be fixed for the 3.4.1 version.

-- 
Dragos Ivan, Nuxeo Romania
+40 21 322 61 13
http://www.nuxeo.ro
mailto:div at nuxeo.com



More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.