Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(1)  |  Derive(1)  |  Import(2)

src/i/k/iktomi-HEAD/iktomi/web/shortcuts.py   iktomi(Download)
# -*- coding: utf-8 -*-
import json
from webob.exc import status_map, HTTPMethodNotAllowed
from webob import Response
from .core import cases
    h = filters.match(path, name, convs=convs)
    if method is not None:
        h = h | cases(filters.method(method),
                      HTTPMethodNotAllowed)
    return h | handler

src/i/k/iktomi-HEAD/iktomi/web/filters.py   iktomi(Download)
from urllib import unquote
from webob.exc import HTTPMethodNotAllowed
from .core import WebHandler, cases
from . import Response
from .url_templates import UrlTemplate
class by_method(cases):
    '''
    Cases chooser handler::
 
        by_method({'GET': get_item_handler,