Is there no way to add a photo to the member data?

On 5/3/06, lopez adrian <[EMAIL PROTECTED]> wrote:
Ok so that's what i do :

i add a CPS image field in member schema.
i add a image widget in the member layout and place this widget in the layout.

After that when i go to the portal and when i attempt to access member data i got this error:
Error Type:   TypeError
Error Value:

_getEntryFromBacking() takes at least 3 arguments (2 given)

Traceback:

Traceback (innermost last):

    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish , line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    * Module Products.PageTemplates.PageTemplate , line 104, in pt_render
      <FSPageTemplate at /cps/cpsdirectory_entry_view>
    * Module TAL.TALInterpreter, line 238, in __call__
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter , line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter , line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 691, in do_loop_tal
    * Module TAL.TALInterpreter , line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 691, in do_loop_tal
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter , line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 715, in do_condition
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter , line 281, in interpret
    * Module TAL.TALInterpreter, line 691, in do_loop_tal
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter , line 507, in do_setLocal_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: /cps/cpsskins_main_template_default
      Line 42, Column 16
      _expression_: <PythonExpr isRenderable and content.render_cache(shield=shield, context_obj=context_obj, enable_esi=enable_esi, boxedit=boxedit, template=template, options=options)>
      Names:

{'container': <CPSDefaultSite at /cps>,
'context': <CPSDefaultSite at /cps>,
'default': <Products.PageTemplates.TALES.Default instance at 0x014C7CD8>,
'here': <CPSDefaultSite at /cps>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x0441A490>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x014BC288>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x0441A490>,
'request': <HTTPRequest, URL= "" href="http://albator/cps/cpsdirectory_entry_view" target="_blank" >http://albator/cps/cpsdirectory_entry_view>,
'root': <Application at >,
'template': <FSPageTemplate at /cps/cpsdirectory_entry_view>,
'traverse_subpath': [],
'user': <User 'seternal'>}

    * Module Products.PageTemplates.ZRPythonExpr , line 47, in __call__
      __traceback_info__: isRenderable and content.render_cache(shield=shield, context_obj=context_obj, enable_esi=enable_esi, boxedit=boxedit, template=template, options=options)
    * Module Python _expression_ "isRenderable and content.render_cache(shield=shield, context_obj=context_obj, enable_esi=enable_esi, boxedit=boxedit, template=template, options=options)", line 1, in <_expression_>
    * Module Products.CPSSkins.PortalBoxGroup, line 313, in render_cache
    * Module Products.CPSSkins.PortalBoxGroup, line 258, in render
    * Module Products.CPSPortlets.CPSPortlet, line 487, in render_cache
    * Module Products.CPSDocument.CPSDocument, line 68, in render
    * Module Products.CPSDocument.FlexibleTypeInformation, line 752, in renderObject
    * Module Products.CPSDocument.FlexibleTypeInformation, line 714, in _renderLayouts
    * Module Products.CPSSchemas.Layout, line 391, in renderLayoutStructure
    * Module Products.CPSSchemas.BasicWidgets, line 2045, in render
    * Module Products.CPSPortlets.PortletWidgets.MainContentWidget, line 27, in renderMainContent
    * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <FSPageTemplate at /cps/cpsdirectory_entry_view>
    * Module TAL.TALInterpreter, line 238, in __call__
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter , line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 772, in do_defineSlot
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 507, in do_setLocal_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: file:CPSDirectory/skins/cps_directory/cpsdirectory_entry_view.pt
      Line 25, Column 2
      _expression_: <PythonExpr dir.renderEntryDetailed (id)>
      Names:

{'container': <CPSDefaultSite at /cps>,
'context': <CPSDefaultSite at /cps>,
'default': <Products.PageTemplates.TALES.Default instance at 0x014C7CD8>,
'here': <CPSDefaultSite at /cps>,
'loop': < Products.PageTemplates.TALES.SafeMapping object at 0x063DA6E8>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x014BC288>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x063DA6E8>,
'request': <HTTPRequest, URL= "" href="http://albator/cps/cpsdirectory_entry_view" target="_blank" >http://albator/cps/cpsdirectory_entry_view>,
'root': <Application at >,
'template': <FSPageTemplate at /cps/cpsdirectory_entry_view>}

    * 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 574, in renderEntryDetailed
    * Module Products.CPSDirectory.BaseDirectory, line 944, in _renderLayout
    * Module Products.CPSSchemas.Layout, line 391, in renderLayoutStructure
    * Module Products.CPSSchemas.BasicWidgets , line 1918, in render
    * Module Products.CPSSchemas.BasicWidgets, line 1812, in getImageInfo
    * Module Products.CPSSchemas.BasicWidgets, line 1615, in getFileInfo
    * Module Products.CPSDirectory.MetaDirectory, line 697, in _getContentUrl

TypeError: _getEntryFromBacking() takes at least 3 arguments (2 given)

when i access in edit mode to the data its works, but not in view mode.

Thank you for you care.

Adrian



On 5/3/06, Lennart Regebro <[EMAIL PROTECTED]> wrote:
> lopez adrian wrote:
> > Hello,
> > Is there any chance that the new core of CPS has been builded?
> >
> > I really need to add a photo to member data as a  new field. I know
> > there is a bug because we access to the data by lisiting folder
> > properties of a member.
>
> I can't find anything about this in the bug tracker, so could you please
> tell us what the error is?
>
> --
> Lennart Regebro, Nuxeo     http://www.nuxeo.com/
> CPS Content Management     http://www.cps-project.org/
>

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to