Exemple #1
0
        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)
Exemple #2
0
        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)
Exemple #3
0
        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)