Commit 4fc0baea authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

make import work on zope2

parent 4a0c49c7
......@@ -752,7 +752,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
'''Publishes the object at 'path' returning a response object.'''
from ZPublisher.Response import Response
from ZServer.ZPublisher.Publish import publish_module_standard
try:
from ZServer.ZPublisher.Publish import publish_module_standard
except ImportError: # BBB Zope2
from ZPublisher.Publish import publish_module_standard
from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
......
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