If I have a model like:

class Test(Base):
    value = sqlalchemy.Column(db.String)

and I have a function like:

def on_value_change(model, oldValue):
    # Do stuff


I'd like on_value_change called *after* Test.value has been changed

I know it's possible to do it *before* Test.value has changed and choose to 
accept or reject the change via an orm event.

However, the problem with that is that since the change has not been 
applied to Test yet I have to pass around the new value in addition to 
passing around the instance of Test.

Is it possible to do this?

Thanks!
Amir

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to