commit 56f0e9796202b275d9a7f5bfd2c8d73cc38c2dac
parent 92f0f27c67ac10d43a07ee3635a07e4cdae3fcf6
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 6 Oct 2012 08:30:12 +1000
workaround for Genshi bug #258
Markup.join raises SystemError when passed a generator:
http://genshi.edgewall.org/ticket/258
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/viewutils.py b/viewutils.py
@@ -24,6 +24,6 @@ def idify(s):
ATOM_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S+10:00'
def tag_list(tags):
- return genshi.Markup(u', ').join(
+ return genshi.Markup(u', ').join([
genshi.Markup(u'<a rel="tag" href="/tags/%s">%s</a>' % (urllib.quote(tag.encode('utf8'), ''), tag))
- for tag in tags)
+ for tag in tags])