Skip to content
URL routing mechanism for webapp for Google App Engine Developer
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README
gdispatch.py
test.py
test_gdispatch.py

README

gdispatch is a simple python module that enables in-place routing instruction right above each RequestHandler.
It also allows RequestHandler to recieve GET/POST parameters as function arguments

Example:

gdispatch.route(lambda:('/login', LoginHandler))
class LoginHandler(webapp.RequestHandler):
    @gdispatch.kwargs
    def post(self, name, password):
        ...    

gdispatch.route(lambda:('/logout', LogoutHandler))
class LogoutHandler(webapp.RequestHandler):
    def get(self):
        ...

gdispatch.run()

You can’t perform that action at this time.