On Wed, Apr 28, 2010 at 10:04 AM, Chris Withers <ch...@simplistix.co.uk> wrote:
> Daniel Robbins wrote:
>>
>> Let's say that when a database record is added or updated, I need to
>> perform some arbitrary action (in my case, ensuring that data in other
>> tables is consistent with what is being committed.)
>>
>> What mechanisms are suggested for this?
>
> Mapper extesions:
>
> http://www.sqlalchemy.org/docs/05/reference/orm/interfaces.html#sqlalchemy.orm.interfaces.MapperExtension

Thanks, Chris. Right now I am not defining a mapper, just a bunch of
declarative classes. Can I still use MapperExtensions?

Or should I move away from pure declarative and use mappers directly?
I might be leaning in that direction anyway...

Regards,

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to