handlers.py
changeset 62 e7ca94b94a4e
parent 59 8ec729c5d998
child 63 416560b82116
--- a/handlers.py	Mon Feb 09 07:09:00 2009 +0200
+++ b/handlers.py	Mon Feb 09 07:15:19 2009 +0200
@@ -50,7 +50,6 @@
         req             = request,
         prefs           = request.prefs,
         preferences     = prefs,
-        timezone        = request.prefs[prefs.timezone],
         timezones       = pytz.common_timezones,
     )
 
@@ -75,10 +74,9 @@
 
     return templates.render_to_response("channel_view",
         req             = request,
-        timezone        = request.prefs[prefs.timezone],
+        prefs           = request.prefs,
         channel         = channel,
         count           = count,
-        formatter       = formatter,
         lines           = lines,
     )
 
@@ -120,7 +118,7 @@
     # display calendar
     return templates.render_to_response("channel_calendar",
         req             = request,
-        timezone        = timezone,
+        prefs           = request.prefs,
         channel         = channel,
         calendar        = calendar.Calendar(),
         month           = target.date(),
@@ -144,9 +142,8 @@
 
     return templates.render_to_response("channel_date",
         req             = request,
-        timezone        = timezone,
+        prefs           = request.prefs,
         channel         = channel,
-        formatter       = formatter,
         date            = date,
         lines           = lines,
     )