Exemple #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
Exemple #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
Exemple #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
Exemple #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