Changeset 4300

Show
Ignore:
Timestamp:
07/20/08 16:35:17 (1 month ago)
Author:
ed
Message:

Broke the creation of the object and the setting of its attProperties into two steps in order to use the error handling of attProperties in propertyHelperMixin.py. This fixes issue #1160, reported by Nate Lowrie.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4296 r4300  
    26012601        # Here's where the control is actually created! 
    26022602        mixedClass = self.getControlClass(cls) 
    2603         obj = mixedClass(parent, properties=props, attProperties=attProperties) 
     2603        obj = mixedClass(parent, properties=props) 
     2604        obj.setPropertiesFromAtts(attProperties) 
    26042605 
    26052606        if issubclass(cls, dui.dTreeView):