Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_mod.py @ 5289:ed6df6b1c29a
Prevent WSGI apps from touching sys.stdin by setting ui.interactive to False.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Fri, 07 Sep 2007 17:38:52 +0200 |
parents | 142a07e758c8 |
children | 05889b6b1468 b0bfe087ad8a |
comparison
equal
deleted
inserted
replaced
5233:aea35488ea66 | 5289:ed6df6b1c29a |
---|---|
81 if self.motd is not None: | 81 if self.motd is not None: |
82 yield self.motd | 82 yield self.motd |
83 else: | 83 else: |
84 yield config('web', 'motd', '') | 84 yield config('web', 'motd', '') |
85 | 85 |
86 parentui = self.parentui or ui.ui(report_untrusted=False) | 86 parentui = self.parentui or ui.ui(report_untrusted=False, |
87 interactive=False) | |
87 | 88 |
88 def config(section, name, default=None, untrusted=True): | 89 def config(section, name, default=None, untrusted=True): |
89 return parentui.config(section, name, default, untrusted) | 90 return parentui.config(section, name, default, untrusted) |
90 | 91 |
91 url = req.env['REQUEST_URI'].split('?')[0] | 92 url = req.env['REQUEST_URI'].split('?')[0] |