Permalink
Browse files

add about

  • Loading branch information...
alice1017 committed Mar 9, 2011
1 parent 0ca289b commit 90b84055ff65b729dbf9f0162ba3b3f053423867
Showing with 7 additions and 2 deletions.
  1. +7 −2 main.py
View
@@ -91,7 +91,7 @@ def get(self):
items["src"] = ""
i = 1
for c in data.SRC.split("\n"):
- items["src"] += "%s| %s" % (str(i).ljust(3),c)
+ items["src"] += "<span style='background:#aaa;border-right:1px solid #000;padding:0px;padding-left:7px;'>%s</span> %s" % (str(i).ljust(3),c)
i += 1
items["fork_link"] = "/?fork=%s" % data.TOKEN
@@ -130,13 +130,18 @@ def get(self):
file = self.request.get("file")
self.response.out.write(open(file,"r").read())
+class About(webapp.RequestHandler):
+ def get(self):
+ self.redirect("http://sharesrc.appspot.com/print?t=x4jtk4hcaq6j3t34bradpe72jaf1yh")
+
def main():
application = webapp.WSGIApplication([
('/', MainHandler),
('/f',SupportFile),
('/registory',RegistoryHandler),
('/print',PrintHandler),
- ('/view',ViewHandler)],debug=True)
+ ('/view',ViewHandler),
+ ('/about',About)],debug=True)
util.run_wsgi_app(application)
if __name__ == '__main__':

0 comments on commit 90b8405

Please sign in to comment.