changeset 5887:41a3fce17625

hgweb: return iterable, add deprecation note
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 18 Jan 2008 19:53:38 +0100
parents dd1998dd6f3b
children 956afc025c0f
files mercurial/hgweb/request.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Fri Jan 18 19:53:38 2008 +0100
+++ b/mercurial/hgweb/request.py	Fri Jan 18 19:53:38 2008 +0100
@@ -84,7 +84,9 @@
         self.header(headers)
 
 def wsgiapplication(app_maker):
+    '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
+    can and should now be used as a WSGI application.'''
     application = app_maker()
     def run_wsgi(env, respond):
-        application(env, respond)
+        return application(env, respond)
     return run_wsgi