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()
def app(global_conf): config.read(global_conf['__file__']) return getWSGIApplication(global_conf['zope_conf'])
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
def ZopeApplication(global_config, config_file, handle_errors=True, **options): handle_errors = asbool(handle_errors) return getWSGIApplication(config_file, handle_errors=handle_errors)