Re: [dabo-users] SQL Builder versus UserSQL

Author: Ed Leafe

Posted: 2007-08-31 at 17:27:09

On Aug 31, 2007, at 5:26 PM, dw wrote:

> The generated error is:

>

> Traceback (most recent call last):

> File "C:\projects\dabo\lib\eventMixin.py", line 97, in raiseEvent

> bindingFunction(event)

> File "C:\projects\dabo\ui\uiwx\dPemMixin.py", line 1155, in

> __onUpdate

> self.update()

> File "C:\projects\dabo\ui\dDataControlMixinBase.py", line 109, in

> update

> self.Value = method()

I have an idea what's going on here, but if you would be willing to

help me out a little more...

If you could modify C:\projects\dabo\ui\dDataControlMixinBase.py so

that the following two unnumbered debugging lines are added between

the current lines 108-109

107 if self.Source and self._srcIsBizobj:

108 # First see if DataField refers to a method of the bizobj:

print "SOURCE", self.Source

print "DATAFIELD", self.DataField

109 method = getattr(self.Source, self.DataField, None)

110 if method is not None:

111 self.Value = method()

Run the code that uses the UserSQL version, and then post the

debugging output here.

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

©2007 Ed Leafe