Ed Leafe wrote:
> On Oct 7, 2008, at 9:16 AM, Uwe Grauer wrote:
>
>> SCAN <bound method JnpBizobj.save of <biz.Jnp.JnpBizobj (baseclass
>> dabo.biz.dBizobj, id:155114700)>> () {'startTransaction': False}
>> JnpBizobj.save() was called
>> Dabo Error Log: Tue Oct 7 16:13:43 2008: Error in scanChangedRows:
>> save() takes at most 2 arguments (3 given)
>
> As far as I can see, there is only one argument: no args, and the
> 'startTransaction' kwarg. I don't know where the third argument is
> coming from; RemoteConnector's decorated methods are not involved. The
> function is your bizobj's save().
>
> The only other thing I could suggest is to add a call to dabo.trace()
> there, and step through the code to see if that reveals anything.
>
> I have about a dozen apps here that are working correctly, so it's
> hard for me to figure out what could be different with your app.
>
Found it.
For debugging purposes i had this in my JnpBizobj:
def save(self, startTransaction=True):
print "JnpBizobj.save() was called"
dabo.biz.dBizobj.save(self, startTransaction)
Commenting the above the error went away.
With this change it doens't error too:
def save(self, startTransaction=True):
print "JnpBizobj.save() was called"
super(JnpBizobj, self).save(startTransaction)
I do not understand this.
Can someone explain the difference?
Uwe
_______________________________________________
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/[EMAIL PROTECTED]