aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2012-09-26 16:23:16 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2012-09-26 16:23:16 +0200
commit7c579e8fa3756727acea74380c3c9eeef170a378 (patch)
treeb47a24097c9f0f9e88f1ffa180405a550005e07b
parent9d37c925f02cf251c156a13cf72e3a5a8cfc6a47 (diff)
downloadnanocloudlogger-7c579e8fa3756727acea74380c3c9eeef170a378.tar.gz
nanocloudlogger-7c579e8fa3756727acea74380c3c9eeef170a378.zip
Added init code.
-rw-r--r--src/logger_gae/__init__.py2
-rwxr-xr-xsrc/logger_gae/api.py26
-rwxr-xr-xsrc/logger_gae/app.yaml13
3 files changed, 41 insertions, 0 deletions
diff --git a/src/logger_gae/__init__.py b/src/logger_gae/__init__.py
new file mode 100644
index 0000000..34d1864
--- /dev/null
+++ b/src/logger_gae/__init__.py
@@ -0,0 +1,2 @@
+__author__="m"
+__date__ ="$Sep 26, 2012 4:21:47 PM$" \ No newline at end of file
diff --git a/src/logger_gae/api.py b/src/logger_gae/api.py
new file mode 100755
index 0000000..622a5dc
--- /dev/null
+++ b/src/logger_gae/api.py
@@ -0,0 +1,26 @@
+
+import cgi
+import datetime
+import webapp2
+
+from google.appengine.ext import db
+
+class Feed(db.Model):
+ secret = db.StringProperty()
+ author = db.UserProperty()
+ content = db.StringProperty(multiline=True)
+ date = db.DateTimeProperty(auto_now_add=True)
+
+class MainPage(webapp2.RequestHandler):
+ def get(self):
+ self.response.out.write('main page')
+
+class Stream(webapp2.RequestHandler):
+ def get(self):
+ self.response.out.write('stream api')
+
+app = webapp2.WSGIApplication([
+ ('/api', MainPage),
+ ('/api/stream', Stream),
+ ('/', MainPage)
+], debug=True) \ No newline at end of file
diff --git a/src/logger_gae/app.yaml b/src/logger_gae/app.yaml
new file mode 100755
index 0000000..b512f92
--- /dev/null
+++ b/src/logger_gae/app.yaml
@@ -0,0 +1,13 @@
+application: logger_gae
+version: v1
+runtime: python27
+api_version: 1
+threadsafe: yes
+
+handlers:
+- url: .*
+ script: api.app
+
+libraries:
+- name: webapp2
+ version: "2.5.1"