dabo Commit
Revision 5063
Date: 2009-02-16 08:00:35 -0800 (Mon, 16 Feb 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5063

Changed:
U   trunk/dabo/lib/datanav/Form.py

Log:
If the user clicks the close button instead of cancel on the new configure
grid dialog, this traceback would occur:

Traceback (most recent call last):
  File "/home/pmcnett/dabo/dabo/ui/uiwx/dToolBar.py", line 486, in __onWxHit
    self.raiseEvent(dEvents.Hit)
  File "/home/pmcnett/dabo/dabo/lib/eventMixin.py", line 93, in raiseEvent
    bindingFunction(event)
  File "/home/pmcnett/dabo/dabo/lib/datanav/Form.py", line 278, in onConfigGrid
    if d.selectedColumns == None:
AttributeError: 'GridColumnsDialog' object has no attribute 'selectedColumns'
Fixed.



Diff:
Modified: trunk/dabo/lib/datanav/Form.py
===================================================================
--- trunk/dabo/lib/datanav/Form.py      2009-02-16 14:37:02 UTC (rev 5062)
+++ trunk/dabo/lib/datanav/Form.py      2009-02-16 16:00:35 UTC (rev 5063)
@@ -246,6 +246,9 @@
 
                class GridColumnsDialog(dabo.ui.dOkCancelDialog):
 
+                       def initProperties(self):
+                               self.selectedColumns = None
+
                        def addControls(self):
                                self.addObject(dabo.ui.dLabel, RegID="label", 
                                                Caption=_("You can customize 
grid appearence by selecting\nthe columns you wish to see bellow:"), 
WordWrap=True)



_______________________________________________
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