Chris McDonough <chr...@plope.com> added the comment:

This is by design.  In 1.2, if you don't use "repoze.bfg.router.make_app" to 
create your BFG 
WSGI application (instead using a Configurator and config.make_wsgi_app) and 
you need to 
use the ZCA "thread local API" (getUtiility, getAdapter, getSiteManager, etc), 
you must put this 
code somewhere in your run.py:

from zope.component import getSiteManager
from repoze.bfg import get_current_registry
getSiteManager.sethook(get_current_registry)

----------
status: unread -> resolved

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue112>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to