Mercurial > hg > hgpaste
annotate 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 |
rev | line source |
---|---|
5 | 1 __all__ = ['wsgi_app', 'make_app'] |
2 | |
3 def wsgi_app(config_file): | |
4 """wsgi application""" | |
0
047850e4bb4c
initial version of hgpaste, http://www.coactivate.org/projects/topp-engineering/lists/topp-engineering-discussion/archive/2009/09/1252293278946
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
5 from mercurial import demandimport; demandimport.enable() |
047850e4bb4c
initial version of hgpaste, http://www.coactivate.org/projects/topp-engineering/lists/topp-engineering-discussion/archive/2009/09/1252293278946
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
6 from mercurial.hgweb.hgwebdir_mod import hgwebdir |
047850e4bb4c
initial version of hgpaste, http://www.coactivate.org/projects/topp-engineering/lists/topp-engineering-discussion/archive/2009/09/1252293278946
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
7 application = hgwebdir(config_file) |
5 | 8 return application |
9 | |
10 def make_app(global_conf, config_file): | |
11 """make an app for paster""" | |
12 return wsgi_app(config_file) |