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

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

        def default_parser(regexp=DEFAULT_PARSER, **kwargs):
    regexp = re.compile(regexp)
    def parser(url):
        m = regexp.match(url)
        if m:
            w = m.group('width')
            h = m.group('height')
            path = m.group('path')
            path = path.replace('/', os.sep)
            return path, (int(w), int(h))
        return None
    return parser, regexp
        


src/i/w/iw.thumbs-1.2/iw/thumbs/middleware.py   iw.thumbs(Download)
from paste.fileapp import FileApp
from iw.thumbs.image import resize
from iw.thumbs.url import default_parser
from iw.thumbs.url import DEFAULT_PARSER
from iw.thumbs.image import default_fetcher