Commit 39364c94 authored by Nicolas Dumazet's avatar Nicolas Dumazet

zope.site does not even exist in 2.8


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38614 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38f4b7d3
...@@ -7,6 +7,12 @@ try: ...@@ -7,6 +7,12 @@ try:
except ImportError: except ImportError:
# backwards compatibility for Zope < 2.12 # backwards compatibility for Zope < 2.12
import imp, sys import imp, sys
import zope
try:
site = zope.site
except:
sys.modules['zope.site'] = zope.site = imp.new_module('zope.site')
sys.modules[module_name] = hooks = imp.new_module(module_name) sys.modules[module_name] = hooks = imp.new_module(module_name)
def setSite(foo=None): def setSite(foo=None):
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment