As long as you're using p.paster.bootstrap(..) before the events execute,
the threadlocals should be available. This is a use-case that bootstrap is
intended to solve.
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send
I am trying to use of SQLAlchemy event outside of web app.
SQLAlchemy event functions are in their own module --
from sqlalchemy import event
from pyramid.threadlocal import get_current_registry
event.listen(model.User, 'after_update', after_update_listener)
def after_update_listener(mapper,