Commit 0da97a8f authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

test reapplying wsgi patches

parent f6f8723d
...@@ -24,11 +24,7 @@ import six ...@@ -24,11 +24,7 @@ import six
from Products.ERP5Type import WITH_LEGACY_WORKFLOW from Products.ERP5Type import WITH_LEGACY_WORKFLOW
# Load all monkey patches # Load all monkey patches
try: from Products.ERP5Type.patches import WSGIPublisher
from ZPublisher.WSGIPublisher import _MODULES
except ImportError:
# BBB Zope2
from Products.ERP5Type.patches import WSGIPublisher
from Products.ERP5Type.patches import HTTPRequest from Products.ERP5Type.patches import HTTPRequest
from Products.ERP5Type.patches import AccessControl_patch from Products.ERP5Type.patches import AccessControl_patch
from Products.ERP5Type.patches import Restricted from Products.ERP5Type.patches import Restricted
......
...@@ -495,8 +495,4 @@ def publish_module(environ, start_response, ...@@ -495,8 +495,4 @@ def publish_module(environ, start_response,
# Return the result body iterable. # Return the result body iterable.
return result return result
try: sys.modules['ZPublisher.WSGIPublisher'] = sys.modules[__name__]
from ZPublisher.WSGIPublisher import _MODULES
except ImportError:
# BBB Zope2
sys.modules['ZPublisher.WSGIPublisher'] = sys.modules[__name__]
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