Ticket #2061 (new defect)

Opened 10 years ago

Last modified 10 years ago

Bad exception raising for inconsistent Text Widgets

Reported by: gracinet Owned by: madarche
Priority: P2 Milestone: CPS 3.4.10
Component: CPSSchemas Version: TRUNK
Severity: minor Keywords:


If there is a user-configurable (format/position) Text Widget that doesn't have the fields to store the user config information, then the error ends like this:

  Module Products.CPSSchemas.Layout, line 353, in validateLayoutStructure
  Module Products.CPSSchemas.ExtendedWidgets, line 201, in validate
UnboundLocalError: local variable 'rformat' referenced before assignment

This looks like a bug instead of a user mistake. A more explicit ValueError should be raised

Change History

comment:1 Changed 10 years ago by gracinet

  • Milestone changed from CPS 3.5.0 to CPS 3.4.10

Done in trunk [53962]

Note: See TracTickets for help on using tickets.