Ticket #1526 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Traceback on profile import if no meta_type specified for widget

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.4.1
Component: CPSSchemas Version: TRUNK
Severity: minor Keywords: GenericSetup import


With this XML declaration for an extension profile

 <widget name="roles">

where 'roles' is defined by the base profile, one gets

    *  Module Products.CPSSchemas.exportimport.layout, line 194, in _initWidgets
      __traceback_info__: widget: roles

ValueError: Unknown meta_type ''

_initWidgets interprets the declaration as a transtyping with this condition

if layout.has_key(widget_id) and meta_type is not None:

but the default value for meta_type (provided by getAttribute) is (double-checked under pdb)

Change History

comment:1 Changed 14 years ago by gracinet

Same for fields

comment:2 Changed 14 years ago by gracinet

  • Status changed from new to assigned
  • Owner changed from fguillaume to gracinet

I meant the empty string of course

comment:3 Changed 14 years ago by gracinet

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

Done in [34629] and [34633]. See also [34634]

Note: See TracTickets for help on using tickets.