1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import wsgiref.handlers from google.appengine.ext import webapp class MyHandler(webapp.RequestHandler): def get(self): myPath = self.request.path.replace('/', ''); def main(): application = webapp.WSGIApplication( [('/.*', MyHandler)], debug=False) wsgiref.handlers.CGIHandler().run(application) if __name__ == "__main__": main()
Refactorings
No refactoring yet !
ielectric.myopenid.com
July 22, 2008, July 22, 2008 18:07, permalink
Take a look at routes python module.
if my url is http://zote.appspot.com and user access http://zote.appspot.com/Refactor I need to get Refactor