3079a42933388fed686653b9cd9affba

if my url is http://zote.appspot.com and user access http://zote.appspot.com/Refactor I need to get Refactor

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 !

64798a399a79ed8d34fa83ba0e61c1ac

ielectric.myopenid.com

July 22, 2008, July 22, 2008 18:07, permalink

No rating. Login to rate!

Take a look at routes python module.

Your refactoring





Format Copy from initial code

or Cancel