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
>
>
>
>
>
Thanks Ed
Here is the debgged output:
Connection: <Medispan (baseclass dabo.db.dConnection, id:154230572)>
bizHours: <biz.BizHours.BizHours (baseclass dabo.biz.dBizobj, id:154230604)>
Bizobjs: ['public.hours']
Dabo Info Log: Sun Jul 6 16:23:42 2008: WARNING: No BasePrefKey has
been set for this application.
Traceback (most recent call last):
File "./main.py", line 23, in ?
app.start()
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/dApp.py",
line 312, in start
self.setup()
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/dApp.py",
line 277, in setup
self.initUIApp()
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/dApp.py",
line 304, in initUIApp
self.uiApp.setup()
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/uiApp.py",
line 277, in setup
frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/__init__.py",
line 1074, in createForm
frm = cls(*args, **kwargs)
File "/tmp/tmpJY7psy.py", line 74, in __init__
obj = self.getCustControlClass('dComboBox_9989243562')(currParent)
File "/tmp/tmpJY7psy.py", line 152, in __init__
dabo.ui.dComboBox.__init__(self, parent=parent,
attProperties=attProperties, *args, **kwargs)
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dComboBox.py",
line 26, in __init__
dcm.dControlItemMixin.__init__(self, preClass, parent, properties,
attProperties, *args, **kwargs)
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dControlItemMixin.py",
line 20, in __init__
super(dControlItemMixin, self).__init__(*args, **kwargs)
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/dDataControlMixinBase.py",
line 22, in __init__
dabo.ui.dControlMixin.__init__(self, *args, **kwargs)
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dPemMixin.py",
line 179, in __init__
self._afterInit()
File
"/usr/lib/python2.4/site-packages/Dabo-0.8.4-py2.4.egg/dabo/ui/uiwx/dPemMixin.py",
line 312, in _afterInit
self.afterInit()
File "/tmp/tmpJY7psy.py", line 157, in afterInit
names, pks = biz.getClients()
AttributeError: 'NoneType' object has no attribute 'getClients'
Paul McNary
[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]