johnf wrote: > On Thursday 14 May 2009 10:48:14 am Paul McNett wrote: >> johnf wrote: >>> Trying to get my head around this. How do I create the subclasses??? >> Just like any other subclass. >> >>> class PeopleForCategory(Bizobj_peoplecat,dabo.biz.dBizobj) >>> def afterInit(self): >>> self.LinkField = 'category_id' >> No. >> >> class BizPeopleCat(dabo.biz.dBizobj): >> def initProperties(self): >> ... create the sql, set the common props, etc. >> >> class PeopleForCategory(BizPeopleCat): >> def initProperties(self): >> self.super() # get the common props initialized >> self.LinkField = 'category_id' >> > > OK I understand that part. > > People bizobj adds BizPeopleCat as a child right?
No. People bizobj instance adds CategoryForPeople instance as a child. Categories bizobj instance adds PeopleForCategory instance as a child. The only reason BizPeopleCat exists is as an abstract base class - don't instantiate it directly. Paul _______________________________________________ Post Messages to: Dabo-users@leafe.com 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/4a0c5cd4.5050...@ulmcnett.com