Mercurial > hg > hgpaste
annotate hgpaste/factory.py @ 7:0dc878f8a15f
whitespace
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 08:19:30 -0800 |
parents | 043088856f0d |
children | 49e931b5c8e2 |
rev | line source |
---|---|
5 | 1 __all__ = ['wsgi_app', 'make_app'] |
2 | |
7 | 3 |
5 | 4 def wsgi_app(config_file): |
5 """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
|
6 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
|
7 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
|
8 application = hgwebdir(config_file) |
7 | 9 return application |
10 | |
5 | 11 |
12 def make_app(global_conf, config_file): | |
13 """make an app for paster""" | |
14 return wsgi_app(config_file) |