diff --git a/product/ERP5Type/patches/getSite.py b/product/ERP5Type/patches/getSite.py index c60d4b3e61a6e453a37b61f3d5335e2f3b1ab512..55508e397f7833daff12790c8db849da12f82943 100644 --- a/product/ERP5Type/patches/getSite.py +++ b/product/ERP5Type/patches/getSite.py @@ -7,6 +7,12 @@ try: except ImportError: # backwards compatibility for Zope < 2.12 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) def setSite(foo=None): pass