Re: [pylons-discuss] How does one use SQLAlchemy Events with Pyramid?

2014-07-14 Thread Jonathan Vanasco
You can just use the SqlAlchemy events as in the examples in the SqlAlchemy docs. If you need to access the current request, you can use Pyramid's `get_current_request`, which is rather lightweight. Just a quick bit of forewarning / pIanning -- t's usually best to keep the pyramid code separat

Re: [pylons-discuss] How does one use SQLAlchemy Events with Pyramid?

2014-07-14 Thread Wichert Akkerman
On 14 Jul 2014, at 09:29, Seth wrote: > Hello, > > I'd like to use SQLAlchemy events > (http://sqlalchemy.readthedocs.org/en/rel_0_9/orm/events.html) to be able to > fire off a task when a particular model is updated. For example, say someone > updates their UserProfile model via a form or a

[pylons-discuss] How does one use SQLAlchemy Events with Pyramid?

2014-07-14 Thread Seth
Hello, I'd like to use SQLAlchemy events (http://sqlalchemy.readthedocs.org/en/rel_0_9/orm/events.html) to be able to fire off a task when a particular model is updated. For example, say someone updates their UserProfile model via a form or an API -- I'd like to be aware when the model update