-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsendim.py
More file actions
36 lines (28 loc) · 1.13 KB
/
sendim.py
File metadata and controls
36 lines (28 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
shutdown_msg = ("The OpenCollar database has been disabled because of "
"price increases from Google. There is no update for the "
"Owner Hud at this time.\n\n"
"See the link below for more information.\n\n"
"https://raw.github.com/nirea/ocupdater/master/docs/FAQ%20on%20OpenCollar%20Database%20Retirement.md")
class MainPage(webapp.RequestHandler):
def get(self):
self.response.set_status(404)
self.response.out.write(shutdown_msg)
def put(self):
self.response.set_status(404)
self.response.out.write(shutdown_msg)
def delete(self):
self.response.set_status(404)
self.response.out.write(shutdown_msg)
def post(self):
self.response.set_status(404)
self.response.out.write(shutdown_msg)
application = webapp.WSGIApplication(
[('.*', MainPage)
],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()