Commits

Rod Morison  committed c2a7590
  • Participants
  • Parent commits 11bb6eb

Comments (0)

Files changed (2)

File sandbox/app.yaml

 application: t5sandbox
-version: 2
+version: 3
 runtime: python
 api_version: 1
 

File sandbox/main.py

 
 
 class Home(FbController):
-    
-    @verify_user
-    def get(self, path=None):
+
+    def handler(self):
         import random
         self.c.current_user = self.current_user
         self.c.friends = self.graph_api.get_connections("me", "friends")['data']
         random.shuffle(self.c.friends)
         self.render_write('/home.mako')
+        
+    @verify_user
+    def get(self, path=None):
+        self.handler()
+        
+    @verify_user
+    def post(self, path=None):
+        self.handler()
 
 
 def main():