>Sounds good. I think we need to make a small runnable test of this situation
>to sort
>it out. Something like this but with parent/child/grandchild biz relations set
>up:
>
>{{{
>import dabo
>con = dabo.db.connect(":memory:")
>cur = con.cursor()
>cur.execute("create table test (id int, firstname char)")
>cur.execute("insert into test (id, firstname) values (23, 'Paul')")
>cur.execute("insert into test (id, firstname) values (42, 'John')")
>cur.UserSQL = "select id, firstname from test"
>cur.requery()
>print "Testing db:", cur.getDataSet()
>class BizTest(dabo.biz.dBizobj):
> def initProperties(self):
> self.DataSource = "test"
> self.KeyField = "id"
>bizTest = BizTest(con)
>bizTest.requery()
>print "testing biz:", bizTest.getDataSet()
>}}}
The result of test code is as under:
Testing db: ({'id': 23, 'firstname': u'Paul'}, {'id': 42, 'firstname': u'John'})
testing biz: ({'id': 23, 'firstname': u'Paul'}, {'id': 42, 'firstname':
u'John'})
To me, it looks OK.
What inference can we draw regarding : parent: child: grandchild saveAll()
from this?
Especially, when parent is unchanged, child is changed, and I call "saveAll()"
on parent.
---Vineet
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]