Re: [dabo-users] forcing bizobj to recognize ui change & exception

Author: Ed Leafe

Posted: 2009-07-12 at 09:40:31

On Jul 12, 2009, at 8:33 AM, Miguel Lopes wrote:

> Well, not much of an override!

>

> def save(self, evt): self.super()

That's your problem: you've overridden a framework method and changed

the interface. Delete that and the error should go away.

Also, the use of 'evt' indicates to me that you are using save() as

an event handler. Don't confuse handlers with regular methods; it's

typically better to do something like:

def onSave(self, evt):

self.save()

This way it is clear that onSave() is there to handle the event, and

it handles it by calling the save() method.

-- Ed Leafe

©2009 Ed Leafe