Daniel Robbins wrote: > 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.htm > l#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? >
The declarative docs include an example of using a MapperExtension: http://www.sqlalchemy.org/docs/reference/ext/declarative.html#mapper-con figuration Simon -- 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.