Esempio n. 1
0
 def setUp(self):
     import Products
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     try:
         # BBB: for Zope 2.9
         from Products.Five.traversable import FiveTraversable
     except ImportError:
         zcml.load_config('meta.zcml', Products.Five)
         zcml.load_config('traversing.zcml', Products.Five)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Esempio n. 2
0
 def setUp(self):
     import Products
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     try:
         # BBB: for Zope 2.9
         from Products.Five.traversable import FiveTraversable
     except ImportError:
         zcml.load_config('meta.zcml', Products.Five)
         zcml.load_config('traversing.zcml', Products.Five)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Esempio n. 3
0
 def setUp(self):
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Esempio n. 4
0
 def setUp(self):
     ZopeTestCase.setUp(self)
     self.root = self.app
Esempio n. 5
0
 def setUp(self):
     from AccessControl.SecurityManagement import newSecurityManager
     ZopeTestCase.setUp(self)
     self.root = self.app
     newSecurityManager(None, OmnipotentUser().__of__(self.app.acl_users))
Esempio n. 6
0
 def setUp(self):
     ZopeTestCase.setUp(self)
     self.root = self.app