On Sunday 06 July 2008 2:10:44 pm Ed Leafe wrote:
> On Jul 6, 2008, at 2:02 PM, Paul McNary wrote:
> > File "/tmp/tmpCa8oJa.py", line 154, in afterInit
> > names, pks = biz.getClients()
> > AttributeError: 'NoneType' object has no attribute 'getClients'
>
> The code for that method reads:
>
> biz = self.Form.getBizobj("hours")
> names, pks = biz.getClients()
>
> That means that getBizobj is returning None at that point. That means
> that the bizobj was not created in the createBizobjs() method. Can you
> modify that method to add some debugging output, so that I can get an
> idea where it's failing? Change that method to read:
>
> def createBizobjs(self):
> conn = self.Application.getConnectionByName("ConsultHours")
> print "Connection:", conn
> bizHours = self.Application.biz.BizHours(conn)
> print "bizHours:", bizHours
> self.addBizobj(bizHours)
> print "Bizobjs:", self.bizobjs.keys()
>
> > Also I started this tutorial of by first placing a Panel on the
> > Designer. Isn't that what you said needed to be done in all projects?
>
> Yes, although it's really only necessary on Windows.
>
> -- Ed Leafe
>
I would have to disagree. Not starting with a Panel means you do not have
keyboard navigation in a form (i.e. Tab Shift+Tab) in Linux.
--
Adrian Klaver
[EMAIL PROTECTED]
_______________________________________________
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]