On 10/12/11 7:39 AM, Vineet Deodhar wrote:
> I made sure about addChild().
>
> My actual bizobj relations are similar to the following:
> biz1 is parent
> biz2 is child of biz1
> biz3& biz4 both are childs of biz2
>
> I have specified like this:
> biz1.addChild(biz2)
> biz2.addChild(biz3)
> biz2.addChild(biz4)
>
> Other definitions (LinkField, FillLinkFromParent, nonUpdateFields) are in
> place.
>
> Is that correct?
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()
}}}
_______________________________________________
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]