Beispiel #1
0
 def _app(self):
     '''Returns the app object for a test.'''
     app = Zope2.app(Zope2.sandbox().open())
     AppZapper().set(app)
     app = utils.makerequest(app)
     connections.register(app)
     return app
Beispiel #2
0
 def _app(self):
     '''Returns the app object for a test.'''
     app = Zope2.app(Zope2.sandbox().open())
     AppZapper().set(app)
     app = utils.makerequest(app)
     connections.register(app)
     return app
Beispiel #3
0
def app():
    """Opens a ZODB connection and returns the app object."""
    app = Zope2.app()
    app = utils.makerequest(app)
    connections.register(app)
    return app
Beispiel #4
0
def app():
    '''Opens a ZODB connection and returns the app object.'''
    app = Zope2.app()
    app = utils.makerequest(app)
    connections.register(app)
    return app