Methods

defget_month(self):"Return the month for which this view should display data"month=self.monthifmonthisNone:try:month=self.kwargs['month']exceptKeyError:try:month=self.request.GET['month']exceptKeyError:raiseHttp404(_(u"No month specified"))returnmonth

defget_next_month(self,date):""" Get the next valid month. """first_day,last_day=_month_bounds(date)next=(last_day+datetime.timedelta(days=1)).replace(day=1)return_get_next_prev_month(self,next,is_previous=False,use_first_day=True)