def redirect_to(self, url): """Wrap Pylons' redirect_to function. By the way, this won't work until after you call check_session(). """ pylons_redirect_to(url)
def redirect_to(self, url): """Wrap Pylons' redirect_to function so that it works in_canvas. By the way, this won't work until after you call check_session(). """ if self.in_canvas: raise CanvasRedirect(url) pylons_redirect_to(url)