github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

snakajima / gdispatch

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 13
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

URL routing mechanism for webapp for Google App Engine Developer — Read more

  cancel

http://satoshi.blogs.com/uie

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

fixed typo 
snakajima (author)
Tue Dec 15 20:54:59 -0800 2009
commit  2e01eff9a6721b7d3c9f7f2a18a5b0e90811c131
tree    dc2f9b00d7331af4d9245cdafdb398d7239362f0
parent  69bb4e530eb33f16056e213b53129a80149c748c
gdispatch /
name age
history
message
file README Tue Dec 15 20:54:59 -0800 2009 fixed typo [snakajima]
file gdispatch.py Fri Nov 27 09:06:43 -0800 2009 kwargs [snakajima]
file test.py Tue Nov 17 22:20:22 -0800 2009 more [snakajima]
file test_gdispatch.py Tue Nov 17 22:20:22 -0800 2009 more [snakajima]
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()

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server