Skip to content

Commit

Permalink
Global template manager should be thread local.
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Nov 29, 2007
1 parent 15d5327 commit 57f4ffc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import sys, os

version = '0.1.1'
version = '0.1.2'

setup(name='z3c.jbot',
version=version,
Expand Down
4 changes: 3 additions & 1 deletion z3c/jbot/manager.py
@@ -1,6 +1,8 @@
import sys
import os.path

import zope.thread

def root_length(a, b):
if b.startswith(a):
return len(a)
Expand All @@ -21,7 +23,7 @@ def find_package(path):

return path

class GlobalTemplateManager(object):
class GlobalTemplateManager(zope.thread.local):
def __init__(self):
self.templates = {}
self.paths = {}
Expand Down

0 comments on commit 57f4ffc

Please sign in to comment.