On Sep 8, 2011, at 4:34 PM, K Peters wrote:
> Pretty much the only difference is that I am using one of my SQLite3
> databases - all goes according to plan until I get to the part where
> Dabo generates the business object code - below is all it does for me:
>
> def createBizobjs(self):
> contactsBizobj = self.Application.biz.ContactsBizobj(self.Connection)
> self.addBizobj(contactsBizobj)
>
> The entire class definition I see in the screencast appears to be missing
That's the reason I start each of those screencasts with the recording
date! That was recorded almost 5 years ago!
The wizard in that screencast has been updated since then to create the
bizobj code as proper files in the biz/ subdirectory, instead of putting bizobj
code in the UI, as was done in the screencast. You should see a file named
'CustomerBizobj.py' in the app's biz/ directory that matches the code in the
screencast.
> In addition to that (and probably not suprising) I receive this error
> when trying to run the form:
>
> Attribute Error: 'NoneType' object has no attribute 'ContactsBizobj'
Yeah, that's something that I really should fix. The problem is that
the bizobj classes are loaded when the Class Designer starts up, and as the
wizard creates new classes, they aren't dynamically loaded into the
application's namespace. If you save your work and quit, and then re-open the
design, the bizobj definitions will be available.
I believe that I have the fix working; I've just never tested it fully
enough to commit. If I have some time tonight, I'll see if I can work on this.
-- Ed Leafe
_______________________________________________
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]