Re: [sqlalchemy] event listening on query

2014-02-21 Thread Tino Dai
attribute events are listening specifically for changes made to an object > in within the user application, which is not the same as the object being > loaded from the database. > > To establish a listener that intercepts when an object is loaded, you can > use the load event: > http://docs

Re: [sqlalchemy] event listening on query

2014-02-21 Thread Michael Bayer
On Feb 21, 2014, at 2:24 PM, Tino Dai wrote: > Hi All, > >I having some problems with having the event listen fire when I'm > setting the attributes via a query. > > Base = declarative_base() > lisDb = create_engine(Schema.lisDbstring()) > Base.metadata = MetaData(bind=lisDb, schema=S

[sqlalchemy] event listening on query

2014-02-21 Thread Tino Dai
Hi All, I having some problems with having the event listen fire when I'm setting the attributes via a query. Base = declarative_base() lisDb = create_engine(Schema.lisDbstring()) Base.metadata = MetaData(bind=lisDb, schema=Schema.lisSchema()) lisSession = sessionmaker(lisDb) easternTz =