dabo Commit
Revision 4042
Date: 2008-04-16 11:03:55 -0700 (Wed, 16 Apr 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4042
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
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):
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2008-04-15 23:17:06 UTC (rev 4041)
+++ trunk/dabo/biz/dBizobj.py 2008-04-16 18:03:55 UTC (rev 4042)
@@ -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):
_______________________________________________
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]