Mercurial > hg > hgpaste
view hgpaste/factory.py @ 5:043088856f0d
clean up this bridge a bit
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 16 Jun 2011 08:47:33 -0700 |
parents | f0832eb3f678 |
children | 0dc878f8a15f |
line wrap: on
line source
__all__ = ['wsgi_app', 'make_app'] def wsgi_app(config_file): """wsgi application""" from mercurial import demandimport; demandimport.enable() from mercurial.hgweb.hgwebdir_mod import hgwebdir application = hgwebdir(config_file) return application def make_app(global_conf, config_file): """make an app for paster""" return wsgi_app(config_file)