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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
1 __all__ = ['wsgi_app', 'make_app']
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
2
7
0dc878f8a15f whitespace
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
3
5
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
4 def wsgi_app(config_file):
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
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
0dc878f8a15f whitespace
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
9 return application
0dc878f8a15f whitespace
Jeff Hammel <k0scist@gmail.com>
parents: 5
diff changeset
10
5
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
11
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
12 def make_app(global_conf, config_file):
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
13 """make an app for paster"""
043088856f0d clean up this bridge a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 1
diff changeset
14 return wsgi_app(config_file)