[PATCH 1 of 1] hgweb: add environ to template variables

FZiegler zarf at klacto.net
Tue Sep 21 07:46:09 CDT 2010


The attached is the same as [1] except that template keyword 
'remoteuser' is replaced by 'environ.REMOTE_USER'. The point is:

-- dumb luck, this works -- and unlike the parent [3], can be applied 
without waiting for danchr's [2].
-- if and when [2] goes in, the attached can then be replaced by [3] 
while remaining API-compatible (: grandiose way to say that templates 
can keep using the same keyword, {environ.REMOTE_USER}).


[1] 'hgweb: add remoteuser to template variables'
http://selenic.com/pipermail/mercurial-devel/2010-September/024540.html
[2] 'templater: add support for mapping lookups.'
http://selenic.com/pipermail/mercurial-devel/2010-September/024577.html
[3] 'hgweb: add environ to template variables'
http://selenic.com/pipermail/mercurial-devel/2010-September/024626.html

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: environ.REMOTE_USER.patch
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100921/118952e2/attachment.txt>


More information about the Mercurial-devel mailing list