Morgan's cosmetic improvement to a translation, and equivalent for other translations...
[zxing.git] / zxing.appspot.com / redirect.py
1 from google.appengine.ext import webapp
2 from google.appengine.ext.webapp.util import run_wsgi_app
3
4 class BlogHandler(webapp.RequestHandler):
5   def get(self, tail = ''):
6     self.redirect('/generator/'+tail, permanent = True)
7
8 application = webapp.WSGIApplication(
9         [
10         (r'^/generator$',     BlogHandler)
11         ])
12
13 def main():
14   run_wsgi_app(application)
15
16 if __name__ == "__main__":
17   main()