So... I'm progressing through the Appwizard portion of the tutorial, and
I'm at the point where I'm editing ui/FrmRecipes.py (I think, it kinda
changes from one file to another in there without a lot of warning), and
I'm seeing this in the tutorial document:
24 def afterInit(self):
25 if not self.Testing:
26 app = self.Application
27 self.addBizobj(app.biz.Recipes(app.dbConnection))
28
29 # Add the separate categories bizobj, to give us the list of all
30 # recipe categories:
31 self.addBizobj(app.biz.Reccats(app.dbConnection))
32 self.requeryCategories()
33 self.super()
vs. this in the Appwizard-generated FrmRecipes.py:
def afterInit(self):
if not self.Testing:
# Instantiate the bizobj and register it with dForm,
and then let the
# superclass take over.
app = self.Application
bizRecipes = app.biz.Recipes(app.dbConnection)
self.addBizobj(bizRecipes)
self.super()
Is this
self.addBizobj(app.biz.Reccats(app.dbConnection))
equivalent to this
bizRecipes = app.biz.Recipes(app.dbConnection)
?
What about the self.requeryCategories() vs. self.addBizobj(bizRecipes)?
I guess things are just enough different that its got me wondering if
I'm even looking at the right file?
Thanks,
Monte
_______________________________________________
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]