RE: [sqlalchemy] Listening for AttributeEvents: 'set'

2013-12-28 Thread Alexey Vihorev
Thanks, I'll try that. From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com] On Behalf Of Michael Bayer Sent: Saturday, December 28, 2013 5:56 PM To: sqlalchemy@googlegroups.com Subject: Re: [sqlalchemy] Listening for AttributeEvents: 'set' this has come up on occasion, but

Re: [sqlalchemy] Listening for AttributeEvents: 'set'

2013-12-28 Thread Michael Bayer
this has come up on occasion, but the attribute event system was originally written to suit the use case of the “backref” as well as for validation, so the python logic that fires it off is placed before the data is actually set. There is no logic for an “after” event within that scope.You

[sqlalchemy] Listening for AttributeEvents: 'set'

2013-12-28 Thread Alexey Vihorev
Hi all! The line event.listen(MyClass.my_attr, 'set', my_listener_method) allows me to react on an attribute being set. However, this event is fired BEFORE the attribute is actually set. And my app's logic requires me to catch the event AFTER the attribute is set (Using MVVM pattern, I need to not