Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add about

  • Loading branch information...
commit 90b84055ff65b729dbf9f0162ba3b3f053423867 1 parent 0ca289b
alice alice1017 authored

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. +7 2 main.py
9 main.py
@@ -91,7 +91,7 @@ def get(self):
91 91 items["src"] = ""
92 92 i = 1
93 93 for c in data.SRC.split("\n"):
94   - items["src"] += "%s| %s" % (str(i).ljust(3),c)
  94 + items["src"] += "<span style='background:#aaa;border-right:1px solid #000;padding:0px;padding-left:7px;'>%s</span> %s" % (str(i).ljust(3),c)
95 95 i += 1
96 96 items["fork_link"] = "/?fork=%s" % data.TOKEN
97 97
@@ -130,13 +130,18 @@ def get(self):
130 130 file = self.request.get("file")
131 131 self.response.out.write(open(file,"r").read())
132 132
  133 +class About(webapp.RequestHandler):
  134 + def get(self):
  135 + self.redirect("http://sharesrc.appspot.com/print?t=x4jtk4hcaq6j3t34bradpe72jaf1yh")
  136 +
133 137 def main():
134 138 application = webapp.WSGIApplication([
135 139 ('/', MainHandler),
136 140 ('/f',SupportFile),
137 141 ('/registory',RegistoryHandler),
138 142 ('/print',PrintHandler),
139   - ('/view',ViewHandler)],debug=True)
  143 + ('/view',ViewHandler),
  144 + ('/about',About)],debug=True)
140 145 util.run_wsgi_app(application)
141 146
142 147 if __name__ == '__main__':

0 comments on commit 90b8405

Please sign in to comment.
Something went wrong with that request. Please try again.