Ticket #769 (closed defect: duplicate)

Opened 14 years ago

Last modified 9 years ago

Cannot render image fields in directories

Reported by: ext.focal.cyrille@… Owned by: fguillaume
Priority: P1 Milestone:
Component: CPS (global) Version: CPS 3.2 branch
Severity: major Keywords: Image widget
Cc:

Description (last modified by fguillaume) (diff)

Environnement:

  • Zope 2.7.4-0
  • python 2.3.4
  • linux2

Description: Dans le but de créer un annuaire personalisé nous avons créé des ZODB Directory dans le portal_repository auquels nous avons associé un schema et un layout comprenant un champ de type "image widget".

Problème: Tant que ce champ n'est pas visible dans le layout tout ce passe bien. Par contre dès que nous essayons de l'afficher nous obtenons l'erreur :

TypeError 
Error Value: _getContentUrl() takes exactly 4 arguments (3 given) 

Traceback: Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 191, in _exec
  Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
<FSPageTemplate at /dircom/cpsdirectory_entry_view>
  Module TAL.TALInterpreter, line 190, in __call__
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 460, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
Line 1, Column 0
Expression: <PythonExpr dir.renderEntryDetailed(id)>

Change History

comment:1 Changed 14 years ago by ext.focal.cyrille@…

version de CPS
3.2.4

comment:2 Changed 14 years ago by fguillaume

  • Status changed from new to assigned
  • Version changed from CPS 3.2 to CPS 3.2 branch
  • Description modified (diff)
  • Summary changed from Le rendu des champs imageWidget est défaillant dans les annuaires to Cannot render image fields in directories

comment:3 Changed 13 years ago by root

  • Milestone CPS 3.2.5 deleted

Milestone CPS 3.2.5 deleted

comment:4 Changed 9 years ago by gracinet

  • Status changed from assigned to closed
  • Resolution set to duplicate

#1557 is indeed about the same issue, but has more details and proposals

Note: See TracTickets for help on using tickets.