Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add about

  • Loading branch information...
commit 90b84055ff65b729dbf9f0162ba3b3f053423867 1 parent 0ca289b
@alice1017 alice1017 authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 main.py
View
9 main.py
@@ -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__':
Please sign in to comment.
Something went wrong with that request. Please try again.