Commit 6f3b45fb authored by Aurel's avatar Aurel

test reapplying wsgi patches

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