Did I find the right examples for you? yes no

All Samples(16)  |  Call(15)  |  Derive(0)  |  Import(1)
Pseudo-application to redirect to another location. The location
parameter is assumed to be properly decoded and escaped.

        def make_http_forward(location, alternate_method=False):
    '''Pseudo-application to redirect to another location. The location
    parameter is assumed to be properly decoded and escaped.'''

    if alternate_method:
        return [str(''
                ''
                '%s' %\
                ((location, ) * 4))]
    else:
        local.environ['waka.status'] = '303 Go West'
        local.environ['waka.headers']['Location'] = location
        return [str('%s' %\
                ((location, ) * 2))]
        


src/w/a/wakarimasen-HEAD/staff_interface.py   wakarimasen(Download)
import str_format
import misc
from util import WakaError, local, make_http_forward
from template import Template
import config
 
    board = local.environ['waka.board']
    return make_http_forward(misc.make_script_url(task='staff',
        board=board.name), config.ALTERNATE_REDIRECT)
 
 
    board = local.environ['waka.board']
    return make_http_forward(misc.make_script_url(task='staff',
        board=board.name), config.ALTERNATE_REDIRECT)
 
    forward_task = 'admin' if user.username == username else 'staff'
 
    return make_http_forward(misc.make_script_url(task=forward_task,
        board=board.name), config.ALTERNATE_REDIRECT)
 
 
    board = local.environ['waka.board']
    return make_http_forward(misc.make_script_url(task='admin',
        board=board.name), config.ALTERNATE_REDIRECT)
 

src/w/a/wakarimasen-HEAD/interboard.py   wakarimasen(Download)
    referer = local.environ['HTTP_REFERER']
    task_data.contents.append(referer)
    return util.make_http_forward(referer, config.ALTERNATE_REDIRECT)
 
# Global post management.
    if caller == 'window':
        return Template('edit_successful')
    return util.make_http_forward(forward_url, config.ALTERNATE_REDIRECT)
 
def remove_admin_entry(task_data, num, override_log=False, no_redirect=False):
    forward_url = misc.make_script_url(task='bans', board=board.name)
 
    return util.make_http_forward(forward_url, config.ALTERNATE_REDIRECT)
 
def remove_old_bans():
    redir = misc.make_script_url(task='mpanel', board=board_name)
 
    return util.make_http_forward(redir, config.ALTERNATE_REDIRECT)
 
def trim_reported_posts(date=0):
    forward_url = misc.make_script_url(task='spam', board=board.name)
 
    return util.make_http_forward(forward_url, config.ALTERNATE_REDIRECT)
 
# Thread Transfer

src/w/a/wakarimasen-HEAD/board.py   wakarimasen(Download)
 
        return util.make_http_forward(
            misc.make_script_url(task='mpanel', board=self.name),
            config.ALTERNATE_REDIRECT)
 
            admin_task_data.contents.append('/%s/%d' % (self.name, post_num))
 
        return util.make_http_forward(forward, config.ALTERNATE_REDIRECT)
        # end of this function. fuck yeah
 
            forward = self.make_path(page=0, url=True)
        if caller == 'user':
            return util.make_http_forward(forward, config.ALTERNATE_REDIRECT)
 
    def delete_post(self, post, password, file_only, archiving,
        forward_url = misc.make_script_url(task='mpanel', board=self.name)
 
        return util.make_http_forward(forward_url, config.ALTERNATE_REDIRECT)
 
    def flood_check(self, ip, timestamp, comment, file, no_repeat,