Changeset 4042

Show
Ignore:
Timestamp:
04/16/2008 11:03:55 AM (3 months ago)
Author:
paul
Message:

Ooh this was a subtle bug. I was scanning through my subopenings, and
adding records to panels (child of subopenings) and to rails and
stiles (children of panels). The addition of panels was working
correctly, but the rails and stiles were only getting records in
one of the panels, not the others.

This was fixed by propagating the change to a parent pk to not just
the immediate children, but to all descendents.

Index: dabo/biz/dBizobj.py
===================================================================
--- dabo/biz/dBizobj.py (revision 4040)
+++ dabo/biz/dBizobj.py (working copy)
@@ -1170,6 +1170,9 @@

self.currentCursorKey = val
# Make sure there is a cursor object for this key.
self._CurrentCursor = val

+ # Propagate the change to any children:
+ for child in self.children:
+ child.setCurrentParent()



def addChild(self, child):

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/biz/dBizobj.py

    r4040 r4042  
    11711171            # Make sure there is a cursor object for this key. 
    11721172            self._CurrentCursor = val 
     1173            # Propagate the change to any children: 
     1174            for child in self.__children: 
     1175                child.setCurrentParent() 
    11731176 
    11741177