179 year = year if year else now.year, |
179 year = year if year else now.year, |
180 month = month if month else now.month, |
180 month = month if month else now.month, |
181 day = 1 |
181 day = 1 |
182 )) |
182 )) |
183 |
183 |
184 # get set of days available |
|
185 days = set(channel.source.get_month_days(target)) |
|
186 |
|
187 # display calendar |
184 # display calendar |
188 return templates.render_to_response("channel_calendar", |
185 return templates.render_to_response("channel_calendar", |
189 req = request, |
186 req = request, |
190 prefs = request.prefs, |
187 prefs = request.prefs, |
191 channel = channel, |
188 channel = channel, |
192 calendar = calendar.Calendar(), |
189 month = target, |
193 month = target.date(), |
|
194 days = days, |
|
195 ) |
190 ) |
196 |
191 |
197 @preferences.handler(prefs.formatter, prefs.timezone, prefs.count) |
192 @preferences.handler(prefs.formatter, prefs.timezone, prefs.count) |
198 def channel_date (request, channel, date, formatter, timezone, count, page=1, type=None) : |
193 def channel_date (request, channel, date, formatter, timezone, count, page=1, type=None) : |
199 """ |
194 """ |