예제 #1
0
파일: sandbox.py 프로젝트: wpjunior/proled
 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
예제 #2
0
파일: sandbox.py 프로젝트: tseaver/Zope-RFA
 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
예제 #3
0
파일: base.py 프로젝트: wpjunior/proled
def app():
    """Opens a ZODB connection and returns the app object."""
    app = Zope2.app()
    app = utils.makerequest(app)
    connections.register(app)
    return app
예제 #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