dabo Commit
Revision 5148
Date: 2009-03-26 11:56:55 -0700 (Thu, 26 Mar 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5148
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
Ed, Please review.
I use CASCADE DELETE, but after I deleted the parent the newly selected record
hadn't
requeried its children yet. I think my change is what was intended but please
take a
look just in case I don't understand something critical.
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2009-03-24 15:54:37 UTC (rev 5147)
+++ trunk/dabo/biz/dBizobj.py 2009-03-26 18:56:55 UTC (rev 5148)
@@ -549,9 +549,8 @@
for child in self.__children:
if self.deleteChildLogic ==
kons.REFINTEG_CASCADE:
child.deleteAll(startTransaction=False)
- else:
- child.cancelAll()
- child.requery()
+ child.cancelAll()
+ child.requery()
if startTransaction:
self.commitTransaction()
_______________________________________________
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]