Re: How To Prepare For get_current_registry() Manually

2012-03-01 Thread Michael Merickel
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

How To Prepare For get_current_registry() Manually

2012-02-29 Thread jerry
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,