Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_mod.py @ 3479:bbfb392b2b1a
Fix "templater object got multiple values for keyword argument 'motd'"
caused by adding motd to the call to the index template (2896ce093ec4)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 21 Oct 2006 20:51:24 +0200 |
parents | 2896ce093ec4 |
children | 8f02223662c8 |
comparison
equal
deleted
inserted
replaced
3478:2896ce093ec4 | 3479:bbfb392b2b1a |
---|---|
65 msg = mimetools.Message(header_file, 0) | 65 msg = mimetools.Message(header_file, 0) |
66 req.header(msg.items()) | 66 req.header(msg.items()) |
67 yield header_file.read() | 67 yield header_file.read() |
68 | 68 |
69 def footer(**map): | 69 def footer(**map): |
70 yield tmpl("footer", motd=self.motd, **map) | 70 yield tmpl("footer", **map) |
71 | 71 |
72 url = req.env['REQUEST_URI'].split('?')[0] | 72 url = req.env['REQUEST_URI'].split('?')[0] |
73 if not url.endswith('/'): | 73 if not url.endswith('/'): |
74 url += '/' | 74 url += '/' |
75 | 75 |