Ticket #2557 (new defect)

Opened 8 years ago

Last modified 8 years ago

Mashed up rendering of available Select choices on parameters screen

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.6
Component: CPSUserForms Version: unspecified
Severity: normal Keywords:
Cc:

Description

Since possible choices of select widgets are ordered in CPSUserForms, they are updated correctly, but the subsequent renderings are ununderstandable.

For these choices:

1 attendee
2 attendees
No clue

one'd get

_
_
o

These are actually the second characters of the vocabulary keys that got generated.

Also, the following error might be related (not reproduced, but triggered the present investigation) :

       'view': <Products.Five.metaclass.SimpleViewClass from /var/opt/cps-3.5/intranet/Zope-Products/CPSUserForms/browser/widgetParams.zpt object at 0x13a77aec>,
       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xfe9868c>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 163, in _eval
  Module Products.PageTemplates.Expressions, line 125, in render
  Module Products.CPSUserForms.browser.widget, line 151, in render
  Module Products.CPSUserForms.browser.widget, line 253, in renderLayoutSchema
  Module Products.CPSSchemas.Layout, line 272, in prepareLayoutWidgets
  Module Products.CPSUserForms.widgets, line 82, in prepare
IndexError: string index out of range

Change History

comment:1 Changed 8 years ago by gracinet

  • Summary changed from Mixed up rendering of a Select choices to Mashed up rendering of available Select choices on parameters screen

Pushed a fix with test in 3.5 branch Still needs real life validation and 3.6 merge

Note: See TracTickets for help on using tickets.