On Jul 21, 2012, at 1:20 PM, Dave Kelly wrote:
> def afterInitAll(self):
> departmentBiz = self.getBizobj("public.departments")
> names, keys = departmentBiz.getNamesAndKeys()
- and -
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
> line 14636, in <lambda>
> lambda event: event.callable(*event.args, **event.kw) )
> File "/usr/local/lib/python2.7/dist-packages/dabo/ui/uiwx/dPemMixin.py",
> line 348, in _afterInitAll
> self.afterInitAll()
> File "/tmp/tmpQOkWFW.py", line 173, in afterInitAll
> names, keys = departmentBiz.getNamesAndKeys()
> AttributeError: 'NoneType' object has no attribute 'getNamesAndKeys'
It looks like the problem is the DataSource for the bizobj. I haven't
worked with schemas too much; John Fabiani can probably help here. But the
traceback shows that 'departmentBiz' is None, meaning that the getBizobj() call
couldn't find a bizobj with that DataSource.
John, any suggestions for how to properly reference a DataSource with a
schema path?
-- 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]