diff 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 diff
--- a/hgpaste/factory.py	Wed Feb 17 16:38:29 2010 +0000
+++ b/hgpaste/factory.py	Thu Jun 16 08:47:33 2011 -0700
@@ -1,5 +1,12 @@
-def make_app(global_conf, config_file):
+__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
+    return application    
+
+def make_app(global_conf, config_file):
+    """make an app for paster"""
+    return wsgi_app(config_file)