Did I find the right examples for you? yes no

All Samples(18)  |  Call(12)  |  Derive(0)  |  Import(6)
Issues a redirect based on the arguments. 

Redirect's *should* occur as a "302 Moved" header, however the web 
framework may utilize a different method.

All arguments are passed to url_for to retrieve the appropriate URL, then
the resulting URL it sent to the redirect function as the URL.

        def redirect_to(*args, **kargs):
    """Issues a redirect based on the arguments. 
    
    Redirect's *should* occur as a "302 Moved" header, however the web 
    framework may utilize a different method.
    
    All arguments are passed to url_for to retrieve the appropriate URL, then
    the resulting URL it sent to the redirect function as the URL.
    """
    target = url_for(*args, **kargs)
    config = request_config()
    return config.redirect(target)
        


src/g/i/gibe-0.12.4/gibe/controllers.py   gibe(Download)
        plugin.post_edit_handle_after(blog, p, kw, context)
        session.save(p)
        raise routes.redirect_to('posts', post = p)
 
    @error_handler(post)
        plugin.post_edit_handle_after(blog, p, kw, context)
        session.update(p)
        raise routes.redirect_to('adminpost', post = p)
 
    @expose(template="genshi:gibe.templates.adminposts", content_type='text/html; charset=utf-8')
    def stop_comments(self, blog, **kw):
        post = model.Post.get_by(post_id = kw['postid'])
        post.accept_comments = False
        session.save(post)
        raise routes.redirect_to('adminpost', post=post)
    def start_comments(self, blog, **kw):
        post = model.Post.get_by(post_id = kw['postid'])
        post.accept_comments = True
        session.save(post)
        raise routes.redirect_to('adminpost', post=post)
           raise cherrypy.HTTPRedirect(kw['return_url'])
        if post:
           raise routes.redirect_to('adminpost', post=post)
        raise routes.redirect_to("admincomments")
 

src/g/i/gibe-0.12.4/gibe/commenting.py   gibe(Download)
    def add_comment(self, blog, **kw):
        post = Post.get_by(post_id = kw['postid'])
        if not post.accept_comments:
            flash("Post does not allow comments")
            raise routes.redirect_to('posts', post = post)
            session.save(c)
 
        raise routes.redirect_to('posts', post = post)
 
 

src/c/k/ckan-2.2/ckan/lib/helpers.py   ckan(Download)
from pylons.decorators.cache import beaker_cache
from pylons import config
from routes import redirect_to as _redirect_to
from routes import url_for as _routes_default_url_for
from alphabet_paginate import AlphaPage
    if are_there_flash_messages():
        kw['__no_cache__'] = True
    return _redirect_to(url_for(*args, **kw))
 
 

src/c/k/ckan-HEAD/ckan/lib/helpers.py   ckan(Download)
from pylons.decorators.cache import beaker_cache
from pylons import config
from routes import redirect_to as _redirect_to
from routes import url_for as _routes_default_url_for
from alphabet_paginate import AlphaPage
    if are_there_flash_messages():
        kw['__no_cache__'] = True
    return _redirect_to(url_for(*args, **kw))
 
 

src/b/i/biosqlweb-HEAD/app/biosqlweb/lib/helpers.py   biosqlweb(Download)
#from webhelpers.html.tags import checkbox, password
 
from routes import url_for, redirect_to
from webhelpers.html import escape, HTML, literal, url_escape
from webhelpers.html.tags import *

src/o/p/openbiblio-0.4.1/openbiblio/lib/helpers.py   openbiblio(Download)
from webhelpers import paginate
from openbiblio.utils import rdf_getstr, render_html
from routes import url_for, redirect_to
from pylons import url
from urllib import quote_plus

src/w/h/WhoIsMyGov-HEAD/whoismygov/lib/helpers.py   WhoIsMyGov(Download)
#from webhelpers.html.tags import checkbox, password
 
from routes import url_for, redirect_to
 
 

src/p/y/pybald-0.2.6/pybald/core/controllers.py   pybald(Download)
import re
from pybald.util import camel_to_underscore
from routes import redirect_to
import project
import hashlib
    def _redirect_to(self, *pargs, **kargs):
        '''Redirect the controller'''
        return redirect_to(*pargs, **kargs)
 
    def _not_found(self, text=None):