johnf wrote:
>> Can I see the classdef for RAfkLookupPanel? Not the entire code, just
>> the class definition line showing the classes it derives from...

> class RAfkLookupPanel(dabo.ui.dPanel, RALookupfn):
> class RALookupfn(object):

Ok, the problem is that I put code in to cut off searching for 
properties below the dObject threshold, and the way Python's method 
resolution order (__mro__) works in multiple-inheritance situations like 
you have is to first go all the way down the first superclass, and then 
go down the other superclasses if necessary. Here's the __mro__ for your 
class:

 >>> RAfkLookupPanel.__mro__
(<class '__main__.RAfkLookupPanel'>, <class 
'dabo.ui.uiwx.dPanel.dPanel'>, <class 
'dabo.ui.uiwx.dPanel._PanelMixin'>, <class 
'dabo.ui.uiwx.dControlMixin.dControlMixin'>, <class 
'dabo.ui.dControlMixinBase.dControlMixinBase'>, <class 
'dabo.ui.uiwx.dPemMixin.dPemMixin'>, <class 
'dabo.ui.dPemMixinBase.dPemMixinBase'>, <class 'dabo.dObject.dObject'>, 
<class 'dabo.dObject.Dummy'>, <class 
'dabo.lib.autosuper.autosuper.autosuper'>, <class 
'dabo.lib.doDefaultMixin.DoDefaultMixin'>, <class 
'dabo.lib.propertyHelperMixin.PropertyHelperMixin'>, <class 
'dabo.lib.eventMixin.EventMixin'>, <class 'wx._windows.Panel'>, <class 
'wx._core.Window'>, <class 'wx._core.EvtHandler'>, <class 
'wx._core.Object'>, <class '__main__.RALookupFn'>, <type 'object'>)

At runtime, dabo will first look for your prop def in RAfkLookupPanel, 
then in dPanel, and then it'll eventually get to PropertyHelperMixin, 
and since I've coded it to search no further, it will never make it to 
RALookupFn, which is way down at the bottom of the __mro__.

You could switch your class def to make your RALookupFn first in line 
before dPanel, but you shouldn't have to do that, so let me think about 
how to accomplish this and yet still not traverse down through the wx layer.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to