Commit 8592fc29 authored by Aurel's avatar Aurel

make import work on zope2

parent ea4fbd27
......@@ -769,7 +769,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