def archive_day_redirect(request, yyyy, mm, dd): return Redirect('/%s/%s/%d/' % ( yyyy, MONTHS_3_REV_REV[int(mm)].title(), int(dd) ))
def already_logged_in(self, request, openid): response = self.redirect_if_valid_next(request) if not response: response = Redirect(self.after_login_redirect_url) return response
def on_login_complete(self, request, user, openid=None): response = self.redirect_if_valid_next(request) if not response: response = Redirect(self.after_login_redirect_url) return response
def archive_item_redirect(request, yyyy, mm, dd, slug): return Redirect("/%s/%s/%d/%s" % (yyyy, MONTHS_3_REV_REV[int(mm)].title(), int(dd), slug))