changeset 111 | 95c0c49d76aa |
parent 108 | d0aca7894fc5 |
child 112 | 090192b64d7e |
110:37e67ec434f3 | 111:95c0c49d76aa |
---|---|
199 """ |
199 """ |
200 Display all log data for the given date |
200 Display all log data for the given date |
201 """ |
201 """ |
202 |
202 |
203 # fix date timezone |
203 # fix date timezone |
204 date = date.replace(tzinfo=timezone) |
204 date = timezone.localize(date) |
205 |
205 |
206 # get that day's events, either paged or not |
206 # get that day's events, either paged or not |
207 if page : |
207 if page : |
208 page, max, lines = channel.source.get_date_paged(date, count, page) |
208 page, max, lines = channel.source.get_date_paged(date, count, page) |
209 |
209 |
228 date = date, |
228 date = date, |
229 page = page, |
229 page = page, |
230 count = count, |
230 count = count, |
231 max = max, |
231 max = max, |
232 lines = lines, |
232 lines = lines, |
233 |
|
234 # for prev/next date |
|
235 date_next = channel.source.get_next_date(date), |
|
236 date_prev = channel.source.get_prev_date(date), |
|
233 ) |
237 ) |
234 |
238 |
235 @preferences.handler(prefs.formatter, prefs.count) |
239 @preferences.handler(prefs.formatter, prefs.count) |
236 def channel_search (request, channel, formatter, count, q=None, page=1, max=1, type=None) : |
240 def channel_search (request, channel, formatter, count, q=None, page=1, max=1, type=None) : |
237 """ |
241 """ |