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

Author: Ed Leafe

Posted: 2009-07-12 at 14:41:36

On Jul 12, 2009, at 11:51 AM, Miguel Lopes wrote:

> But confirmChanges() is still not working properly. If I answer:

> * "Yes" returns True

> * "Cancel" returns None

> * "No" returns True. Should it not return False?

No, this is correct. The dialog asks if you want to save your changes

before moving on. 'Yes' and 'No' do just that. 'Cancel' stops the

process without moving on. The True that is returned from

confirmChanges() means that the user's choice was carried out: either

a save() (for yes) or a cancel() (for no).

-- Ed Leafe

©2009 Ed Leafe