def setUp(self):
        from zope.component import bbb
        bbb.__warn__ = False
        bbb.service.__warn__ = False

        CleanUp.setUp(self)
        sm = getGlobalServices()
        defineService = sm.defineService
        provideService = sm.provideService
        from zope.component.interfaces import IUtilityService
        defineService('Utilities',IUtilityService)
        from zope.component.utility import GlobalUtilityService
        provideService('Utilities', GlobalUtilityService())
Beispiel #2
0
 def setUp(self):
     CleanUp.setUp(self)
     self.__oldpolicy = setSecurityPolicy(SecurityPolicy)
     newInteraction()
    def setUp(self):
        CleanUp.setUp(self)
        import z3c.pt

        zope.configuration.xmlconfig.file("configure.zcml", z3c.pt)
 def setUp(self):
     CleanUp.setUp(self)
     self.__oldpolicy = setSecurityPolicy(SecurityPolicy)
     newInteraction()
Beispiel #5
0
    def setUp(self):
        CleanUp.setUp(self)
        import z3c.pt

        zope.configuration.xmlconfig.file("configure.zcml", z3c.pt)