Mercurial > hg > hgpaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:041ba864496f | 5:043088856f0d |
---|---|
1 def make_app(global_conf, config_file): | 1 __all__ = ['wsgi_app', 'make_app'] |
2 | |
3 def wsgi_app(config_file): | |
4 """wsgi application""" | |
2 from mercurial import demandimport; demandimport.enable() | 5 from mercurial import demandimport; demandimport.enable() |
3 from mercurial.hgweb.hgwebdir_mod import hgwebdir | 6 from mercurial.hgweb.hgwebdir_mod import hgwebdir |
4 application = hgwebdir(config_file) | 7 application = hgwebdir(config_file) |
5 return application | 8 return application |
9 | |
10 def make_app(global_conf, config_file): | |
11 """make an app for paster""" | |
12 return wsgi_app(config_file) |