#1202: Bug in ClassDesigner with
--------------------+-------------------------------------------------------
 Reporter:  fabix   |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  major   |   Milestone:  0.9.2   
Component:  ui      |     Version:  0.9.1   
 Keywords:          |  
--------------------+-------------------------------------------------------
 To reproduce the problem:
  * click on "Add Controls From Data Environment"
  * select a connection
  * select any fields
  * any order
  * choose "Column; labels on Left" layout
  * next until finish

 The form is displayed correctly in "Dabo Class Designer" window. But if
 you try to save the class:
 {{{
 Traceback (most recent call last):
   File "/home/fabien/dev/dabo/src/dabo/ui/uiwx/dMenuItem.py", line 57, in
 __onWxHit
     self.raiseEvent(dEvents.Hit, evt)
   File "/home/fabien/dev/dabo/src/dabo/ui/uiwx/dPemMixin.py", line 947, in
 raiseEvent
     super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
 **kwargs)
   File "/home/fabien/dev/dabo/dabo/lib/eventMixin.py", line 93, in
 raiseEvent
   File "/home/fabien/dev/dabo/src/ide/ClassDesigner.py", line 1661, in
 onSaveDesign
     self.wrapSave(self.CurrentForm.onSaveDesign, evt)
   File "/home/fabien/dev/dabo/src/ide/ClassDesigner.py", line 1797, in
 wrapSave
     func(*args, **kwargs)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerFormMixin.py", line
 469, in onSaveDesign
     propDict = self.getDesignerDict()
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 257, in getDesignerDict
     ret["children"] = self.getChildrenPropDict(classDict)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 463, in getChildrenPropDict
     ret.append(sz.getDesignerDict(itemNum=len(ret), classDict=szDict))
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 257, in getDesignerDict
     ret["children"] = self.getChildrenPropDict(classDict)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 1061, in getChildrenPropDict
     classDict=winDict)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 257, in getDesignerDict
     ret["children"] = self.getChildrenPropDict(classDict)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 463, in getChildrenPropDict
     ret.append(sz.getDesignerDict(itemNum=len(ret), classDict=szDict))
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 257, in getDesignerDict
     ret["children"] = self.getChildrenPropDict(classDict)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 1076, in getChildrenPropDict
     classDict=szrDict)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 257, in getDesignerDict
     ret["children"] = self.getChildrenPropDict(classDict)
   File "/home/fabien/dev/dabo/src/ide/ClassDesignerComponents.py", line
 1648, in getChildrenPropDict
     kidDict["attributes"]["rowColPos"] = self.getGridPos(kid)
   File "/home/fabien/dev/dabo/src/dabo/ui/uiwx/dGridSizer.py", line 304,
 in getGridPos
     row, col = szit.GetPos()
 AttributeError: 'SizerItem' object has no attribute 'GetPos'
 }}}

  * Python : 2.5.2
  * wxPython : 2.8.7 (python-wxgtk2.8)
  * Platform : Debian GNU/Linux lenny

-- 
Ticket URL: <http://trac.dabodev.com/ticket/1202>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to