示例#1
0
def startServer():
    f = StringIO('''
    site-definition /home/faassen/buildout/megrok.cherry/site.zcml
    
    <zodb>
      <filestorage>
        path /home/faassen/buildout/megrok.cherry/parts/data/Data.fs
      </filestorage>
    </zodb>

    <eventlog>
      <logfile>
        path STDOUT
      </logfile>
    </eventlog>
    ''')
    app = getWSGIApplication(f)

    f.close()
    server = WSGIServer(app)
    try:
        server.start()
    except (KeyboardInterrupt, SystemExit):
        server.stop()
示例#2
0
文件: serve.py 项目: ilshad/tackle
def app(global_conf):
    config.read(global_conf['__file__'])
    return getWSGIApplication(global_conf['zope_conf'])
示例#3
0
文件: serve.py 项目: ilshad/tackle
def app(global_conf):
    config.read(global_conf['__file__'])
    return getWSGIApplication(global_conf['zope_conf'])
示例#4
0
def ZopeApplication(global_config, config_file, handle_errors=True, **options):
    handle_errors = asbool(handle_errors)
    app = getWSGIApplication(config_file, handle_errors=handle_errors)
    zope.event.notify(zope.processlifetime.ProcessStarting())
    return app
示例#5
0
def ZopeApplication(global_config, config_file, handle_errors=True, **options):
    handle_errors = asbool(handle_errors)
    app = getWSGIApplication(config_file, handle_errors=handle_errors)
    zope.event.notify(zope.processlifetime.ProcessStarting())
    return app
示例#6
0
def ZopeApplication(global_config, config_file, handle_errors=True, **options):
    handle_errors = asbool(handle_errors)
    return getWSGIApplication(config_file, handle_errors=handle_errors)