--- 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)