Permalink
Browse files

Structure for reporting mechanism.

  • Loading branch information...
Basil Shkara
Basil Shkara committed Nov 14, 2009
1 parent 6de1499 commit 41ed60a0204538b2e4fb8392496d8aaa09d188a7
Showing with 26 additions and 0 deletions.
  1. +4 −0 app.yaml
  2. 0 report/__init__.py
  3. +22 −0 report/report.py
View
@@ -23,6 +23,10 @@ handlers:
script: /jobs/email_report.py
login: admin
+- url: /report/.*
+ script: /report/report.py
+ login: admin
+
- url: .*
script: main.py
login: admin
View
No changes.
View
@@ -0,0 +1,22 @@
+import wsgiref.handlers
+from google.appengine.ext import webapp
+from google.appengine.api import urlfetch
+
+
+class CSVReport(webapp.RequestHandler):
+
+ def get(self):
+ pass
+
+class ViewReport(webapp.RequestHandler):
+
+ def get(self):
+ pass
+
+def main():
+ application = webapp.WSGIApplication([('/report/csv/.*', CSVReport),
+ ('/report/view/.*', ViewReport)], debug=True)
+ wsgiref.handlers.CGIHandler().run(application)
+
+if __name__ == '__main__':
+ main()

0 comments on commit 41ed60a

Please sign in to comment.