dabo Commit
Revision 6910
Date: 2011-10-25 12:54:07 -0700 (Tue, 25 Oct 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6910

Changed:
U   trunk/dabo/ui/uiwx/dGrid.py

Log:
Removed cruft from dGrid.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2011-10-22 16:35:19 UTC (rev 6909)
+++ trunk/dabo/ui/uiwx/dGrid.py 2011-10-25 19:54:07 UTC (rev 6910)
@@ -3438,9 +3438,6 @@
        ##----------------------------------------------------------##
        ##        begin: dEvent callbacks for internal use          ##
        ##----------------------------------------------------------##
-       def __onRowNumChanged(self, evt): pass
-
-
        def _onGridCellEdited(self, evt):
                bizobj = self.getBizobj()
                row, col = evt.EventData["row"], evt.EventData["col"]
@@ -4350,8 +4347,6 @@
                                # Force the grid to maintain its current sort 
order
                                self._restoreSort()
                                dabo.ui.callAfter(self.refresh)
-                       if self.getBizobj():
-                               self.Form.bindEvent(dEvents.RowNumChanged, 
self.__onRowNumChanged)
                else:
                        self._properties["DataSet"] = val
 
@@ -4367,9 +4362,6 @@
                if self._constructed():
                        # We must make sure the grid's table is initialized 
first:
                        self._Table
-                       oldBizobj = self.getBizobj()
-                       if oldBizobj:
-                               oldBizobj.unbindEvent(dEvents.RowNumChanged, 
self.__onRowNumChanged)
                        self._dataSet = None
                        self._dataSource = val
                        self.fillGrid(True)
@@ -4378,7 +4370,6 @@
                                self._dataSourceBeingSet = True
                        if biz:
                                dabo.ui.setAfter(self, "CurrentRow", 
biz.RowNumber)
-                               self.Form.bindEvent(dEvents.RowNumChanged, 
self.__onRowNumChanged)
                else:
                        self._properties["DataSource"] = val
 



_______________________________________________
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