[PATCH] hgweb/localrepo: pass the request object to hooks
Sune Foldager
cryo at cyanite.org
Sat Nov 7 05:25:01 CST 2009
On 07/11/2009, at 08:18, Dirkjan Ochtman wrote:
> On Sat, Nov 7, 2009 at 00:58, Sune Foldager <cryo at cyanite.org> wrote:
>> The ui class could carry an 'environ', which would default to
>> returning
>> os.environ. Hgweb, which creates an ui, could then set
>> wsgireq.environ
>> as the ui's environ, which would closer resemble the correct
>> environment
>> during processeing (for CGI, wsgireq.environ again equals
>> os.environ I
>> think).
>
> Sounds much better, at least. Can you do a patch?
Yes, I will do so later today.
/Sune
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1922 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20091107/ff2f620f/attachment.bin
More information about the Mercurial-devel
mailing list