Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/request.py @ 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 |
comparison
equal
deleted
inserted
replaced
5886:dd1998dd6f3b | 5887:41a3fce17625 |
---|---|
82 if length: | 82 if length: |
83 headers.append(('Content-length', str(length))) | 83 headers.append(('Content-length', str(length))) |
84 self.header(headers) | 84 self.header(headers) |
85 | 85 |
86 def wsgiapplication(app_maker): | 86 def wsgiapplication(app_maker): |
87 '''For compatibility with old CGI scripts. A plain hgweb() or hgwebdir() | |
88 can and should now be used as a WSGI application.''' | |
87 application = app_maker() | 89 application = app_maker() |
88 def run_wsgi(env, respond): | 90 def run_wsgi(env, respond): |
89 application(env, respond) | 91 return application(env, respond) |
90 return run_wsgi | 92 return run_wsgi |