Ed Leafe wrote: > On Dec 3, 2008, at 2:40 PM, Bob Sysero llc Dev wrote: > > > This is because the references are loaded into the app's namespace > when the app starts up. In this case, the app is the Class Designer, > and when you started there was no classes in the biz directory. Once > you quit the CD and restart it, it should find the CustomerBizobj class. > > > -- Ed Leafe I came out of the CD and restart it and still at run time the same error:
Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj' I went over your Screencast Building a Databse Application using the Dabo Class Designer Part I. Even though I am using a Grid and not Column; Label on the left, the idea about add BizObject code is on the same track. What I found out is that in the Screencast the Editing: DesForm, *createBizobjs has the generated code: def createBizobjs(self): class CustomerBizobj(dabo.biz.dBizobj): def afterInit(self): self.DataSource = "customer" . . . . . . . . . def validateRecord(self): . . . . . . ret = "" customerBizobj = CustomerBizobj(self.connection) self.addBizobj(customerBizobj) In the Dabo Version: Version 0.08.4; Revision 4740 The steps are very similar but when you select Add BizObject you are asked where do you want to save the BizObject in a folder under the name CustomerBizobj.py which I saved in my biz folder. In my CD in the Editor for DesForm Method: *createBizobjs contains: def createBizobjs(self): customerBizobj = self.Application.biz.CustomerBizobj(self.Connection) self.addBizobj(customerBizobj) and this is what creates the error: Attribute Error: 'NoneType' object has no attribute 'CustomerBizobj' I could just take the code in the CustomerBizobj.py and drop it in but in my project what I want to do have my BizObject in the biz folder. Do I need to import the CustomerBizobj.py in the CD or some way other way. Bob _______________________________________________ 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]
