Did I find the right examples for you? yes no

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)

src/t/u/TurboGears2-2.3.2/tg/controllers/util.py   TurboGears2(Download)
        base_url = '/'.join(base_url)
 
    req = tg.request._current_obj()
    base_url = _build_url(req.environ, base_url, params)
    if qualified:

src/t/g/tg2-HEAD/tg/controllers/util.py   tg2(Download)
        base_url = '/'.join(base_url)
 
    req = tg.request._current_obj()
    base_url = _build_url(req.environ, base_url, params)
    if qualified:

src/t/u/TurboGears2-2.3.2/tg/decorators.py   TurboGears2(Download)
 
    """
    req = request._current_obj()
    if req.method == 'GET' and req.path.endswith('/') and not(req._response_type) and len(req.params)==0:
        redirect(request.url[:-1], redirect_with=HTTPMovedPermanently)
 
    """
    req = request._current_obj()
    if (req.method == 'GET' and not(req.path.endswith('/')) and not(req._response_type) and len(req.params)==0):
        redirect(request.url+'/', redirect_with=HTTPMovedPermanently)
    def wrap_action(self, action_, *args, **kwargs):
        req = request._current_obj()
 
        try:
            self.predicate.check_authorization(req.environ)

src/t/g/tg2-HEAD/tg/decorators.py   tg2(Download)
 
    """
    req = request._current_obj()
    if req.method == 'GET' and req.path.endswith('/') and not(req._response_type) and len(req.params)==0:
        redirect(request.url[:-1], redirect_with=HTTPMovedPermanently)
 
    """
    req = request._current_obj()
    if (req.method == 'GET' and not(req.path.endswith('/')) and not(req._response_type) and len(req.params)==0):
        redirect(request.url+'/', redirect_with=HTTPMovedPermanently)
    def _check_authorization(self, *args, **kwargs):
        req = request._current_obj()
 
        try:
            self.predicate.check_authorization(req.environ)

src/t/g/tgext.debugbar-0.2.4/tgext/debugbar/sections/timing.py   tgext.debugbar(Download)
def on_after_render(response, *args, **kw):
    now = time.time()
 
    req = request._current_obj()
    req.tgdb_render_info = response
def on_after_render_call(template_engine, template_name, template_vars, kwargs):
    now = time.time()
    req = request._current_obj()
 
    try:

src/t/u/TurboGears2-2.3.2/tg/controllers/wsgiappcontroller.py   TurboGears2(Download)
        """
        # Push into SCRIPT_NAME the path components that have been consumed,
        request = tg.request._current_obj()
        new_req = request.copy()
        to_pop = len(new_req.path_info.strip('/').split('/')) - len(args)

src/t/g/tg2-HEAD/tg/controllers/wsgiappcontroller.py   tg2(Download)
        """
        # Push into SCRIPT_NAME the path components that have been consumed,
        request = tg.request._current_obj()
        new_req = request.copy()
        to_pop = len(new_req.path_info.strip('/').split('/')) - len(args)

src/t/u/TurboGears2-2.3.2/tg/flash.py   TurboGears2(Download)
    def pop_payload(self):
        # First try fetching it from the request
        req = request._current_obj()
        payload = req.environ.get('webflash.payload', {})
        if not payload:

src/t/g/tg2-HEAD/tg/flash.py   tg2(Download)
    def pop_payload(self):
        # First try fetching it from the request
        req = request._current_obj()
        payload = req.environ.get('webflash.payload', {})
        if not payload:

src/t/g/tgext.debugbar-0.2.4/tgext/debugbar/sections/sqla.py   tgext.debugbar(Download)
    def _after_cursor_execute(conn, cursor, stmt, params, context, execmany):
        stop_timer = time.time()
        try:
            req = request._current_obj()
        except:

  1 | 2  Next