Hi List,
I have this simple model (in declarative style):
class Item( Base ):
__tablename__ = 'items'
desc = Column( 'desc', UnicodeText(), nullable=False )
email = Column( 'email', UnicodeText(), nullable=False )
How can I trigger an event when the value of 'desc' has changed
and the instance is persisted (e.g. via 'session.save(item)')?
I would like to send out an e-mail notification when the description
of an item changes. But how do I hook it in?
regards,
-jj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---