# HG changeset patch # User Tero Marttila # Date 1234480708 -7200 # Node ID 3297596ab60635206155356997a54a78ba9e52ad # Parent 2d75e13397a89e99d96be73b534244ac82412c5f fix calls to format_rss/format_png to use a keyword argument diff -r 2d75e13397a8 -r 3297596ab606 handlers.py --- a/handlers.py Fri Feb 13 00:32:06 2009 +0200 +++ b/handlers.py Fri Feb 13 01:18:28 2009 +0200 @@ -32,13 +32,17 @@ # load related preferences formatter = request.prefs['formatter'] + kwargs = dict( + full_timestamps = full_timestamps + ) + # we can render in various modes... if type in ('html', None) : xxx elif type == 'txt' : # plaintext - lines = formatter.format_txt(lines, full_timestamps) + lines = formatter.format_txt(lines, **kwargs) # build data data = '\n'.join(data for line, data in lines) @@ -47,13 +51,13 @@ elif type == 'png' : # PNG image - png_data = formatter.format_png(lines, full_timestamps) + png_data = formatter.format_png(lines, **kwargs) return http.Response(png_data, 'image/png', charset=None) elif type == 'rss' : # RSS feed - rss_data = formatter.format_rss(lines, full_timestamps) + rss_data = formatter.format_rss(lines, **kwargs) # XXX: fix to render as unicode? return http.Response(rss_data, 'application/rss+xml', charset=None)