summaryrefslogtreecommitdiff
path: root/repoze/bfg/threadlocal.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/threadlocal.py')
-rw-r--r--repoze/bfg/threadlocal.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/repoze/bfg/threadlocal.py b/repoze/bfg/threadlocal.py
index 7e0de86ca..7d1b4eeda 100644
--- a/repoze/bfg/threadlocal.py
+++ b/repoze/bfg/threadlocal.py
@@ -1,6 +1,6 @@
import threading
-from zope.component import getGlobalSiteManager
+from repoze.bfg.registry import global_registry
class ThreadLocalManager(threading.local):
def __init__(self, default=None):
@@ -31,8 +31,7 @@ class ThreadLocalManager(threading.local):
self.stack[:] = []
def defaults():
- reg = getGlobalSiteManager()
- return {'request':None, 'registry':reg}
+ return {'request':None, 'registry':global_registry}
manager = ThreadLocalManager(default=defaults)