[Pypi-checkins] r818 - trunk/appengine
martin.von.loewis
python-checkins at python.org
Sun Jul 25 09:25:17 CEST 2010
Author: martin.von.loewis
Date: Sun Jul 25 09:25:17 2010
New Revision: 818
Added:
trunk/appengine/handlers.py
Log:
Add missing file.
Added: trunk/appengine/handlers.py
==============================================================================
--- (empty file)
+++ trunk/appengine/handlers.py Sun Jul 25 09:25:17 2010
@@ -0,0 +1,34 @@
+from google.appengine.ext import webapp
+from google.appengine.ext.webapp import template
+import model
+
+def tpl_path(template_file_name):
+ return os.path.join(os.path.dirname(__file__), 'templates', template_file_name)
+
+class Index(webapp.RequestHandler):
+ def get(self):
+ self.response.out.write(template.render(tpl_path('index.html', {})))
+
+class Simple(webapp.RequestHandler):
+ def get(self, path):
+ path = path.rstrip('/')
+ p = model.Project.all().filter(name=path)
+ self.response.out.write(p.simple)
+
+class File(webapp.RequestHandler):
+ def get(self):
+ #package
+ pass
+
+class ServerSig(webapp.RequestHandler):
+ def get(self):
+ #serversig
+ pass
+
+class Stats(webapp.RequestHandler):
+ def get(self):
+ #localstats/days
+ pass
+
+
+
More information about the Pypi-checkins
mailing list