Ed Leafe wrote:
> On Apr 24, 2007, at 10:39 AM, Carl Karsten wrote:
>
>> Traceback (most recent call last):
>> File "/usr/lib/python2.4/site-packages/dabo/lib/eventMixin.py",
>> line 98, in
>> raiseEvent
>> bindingFunction(event)
>> File "/usr/lib/python2.4/site-packages/dabo/ui/uiwx/
>> dPemMixin.py", line 1090,
>> in __onUpdate
>> self.update()
>> File "/usr/lib/python2.4/site-packages/dabo/ui/
>> dDataControlMixinBase.py",
>> line 106, in update
>> if self.Source and self._srcIsBizobj:
>> File "/usr/lib/python2.4/site-packages/dabo/ui/
>> dDataControlMixinBase.py",
>> line 372, in _getSrc
>> if ds.lower() == "form":
>> AttributeError: 'myClass' object has no attribute 'lower'
>
> OK, I see the problem there. The code for handling the DataSource is
> assuming that a i.e., they inherit from dObject. I'm guessing that 'MyClass'
> does not.
You guessed right.
class myClass(object):
I changed it to
class myClass(dabo.dObject):
'/usr/lib/python2.4/site-packages/dabo' not versioned, and not exported
Dabo Info Log: Tue Apr 24 11:03:45 2007: PyOpenGL not present, so dGlWindow is
not loaded.
Traceback (most recent call last):
File "bd2.py", line 4, in ?
class myClass(dabo.dObject):
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
Ok, so now my init code needs to be moved.
I am going to back up: I can see two ways of dealing with
> all objects that will be used as a DataSource are Dabo objects":
1. make myClass conform to a dObject subclass (maybe just move my init code to
afterInit.)
2. make myClass have the needed API (like implement .lower)
Or, should these even be requirements of binding a control to a property?
Carl K
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]