Hi there,
In the initProperties() method of my dTreeView object, I'm attempting to
populate the tree with children from the database by executing a method in
the form's bizobj. However, every time I try to run the app, I get the
error that "'NoneType' object has no attribute 'PrimaryBizobj'". This is
what my code looks like in initProperties():
frm = self.Form
biz = frm.PrimaryBizobj
ds = biz.getAllParents()
...
And here's the full traceback:
Traceback (most recent call last):
File "dialogs.py", line 23, in <module>
app.start()
File "C:\src\dabo\dApp.py", line 315, in start
self.setup()
File "C:\src\dabo\dApp.py", line 280, in setup
self.initUIApp()
File "C:\src\dabo\dApp.py", line 307, in initUIApp
self.uiApp.setup()
File "C:\src\dabo\ui\uiwx\uiApp.py", line 302, in setup
frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
File "C:\src\dabo\ui\uiwx\__init__.py", line 1121, in createForm
frm = cls(*args, **kwargs)
File "c:\docume~1\mike\locals~1\temp\tmp0sscyd.py", line 53, in __init__
obj = self.getCustControlClass('dTreeView_373482549')(currParent)
File "c:\docume~1\mike\locals~1\temp\tmp0sscyd.py", line 236, in __init__
dabo.ui.dTreeView.__init__(self, parent=parent,
attProperties=attProperties, *args, **kwargs)
File "C:\src\dabo\ui\uiwx\dTreeView.py", line 414, in __init__
*args, **kwargs)
File "C:\src\dabo\ui\uiwx\dPemMixin.py", line 86, in __init__
self._initProperties()
File "C:\src\dabo\dObject.py", line 177, in _initProperties
self.initProperties()
File "c:\docume~1\mike\locals~1\temp\tmp0sscyd.py", line 244, in
initProperties
biz = frm.PrimaryBizobj
AttributeError: 'NoneType' object has no attribute 'PrimaryBizobj'
My only idea for this is that the dTreeView's initProperties() method is
getting called before the Form's createBizobj() method. Am I on the right
track? What should I do from here?
Thanks,
Mike M.
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]