Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3689:c28d94070403
fix: HTMLRequest.dispname must be string,
otherwise rendering of "python:' - %s' % request.dispname"
in issue.index.html fails with UnicodeEncodeError
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Tue, 29 Aug 2006 09:37:25 +0000 |
| parents | 48d891bf9623 |
| children | 790363e96852 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Tue Aug 29 04:32:49 2006 +0000 +++ b/roundup/cgi/templating.py Tue Aug 29 09:37:25 2006 +0000 @@ -2207,13 +2207,10 @@ self.startwith = int(self.form[name].value) # dispname - self.dispname = None if self.form.has_key('@dispname'): - value = self.form['@dispname'].value - # dispname should be encoded to the web interface's charset, - # but the web interface rendering will be expecting a unicode - # string - self.dispname = value.decode(self.client.charset) + self.dispname = self.form['@dispname'].value + else: + self.dispname = None def updateFromURL(self, url): ''' Parse the URL for query args, and update my attributes using the
