Mercurial > hg > redirectall
view redirectall/dispatcher.py @ 0:9e2187433034
initial code
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 08 May 2011 18:28:26 -0700 |
parents | |
children | 3117c5556eca |
line wrap: on
line source
""" request dispatcher """ from handlers import Get, Post from webob import Request, exc class Dispatcher(object): ### class level variables def __init__(self, base_url): self.base_url = base_url ### methods dealing with HTTP def __call__(self, environ, start_response): request = Request(environ) import pdb; pdb.set_trace() return res(environ, start_response)