Beispiel #1
0
 def get(self,name):
     user = users.get_current_user()
     ganglion = Ganglion().all().filter('user ='******'name =', name)
     ganglion = ganglion.fetch(1)
     if not ganglion:
         self.redirect('/')
     else:
         ganglion = ganglion[0]
         if not ganglion.checkUser():
             self.error(404)
             return
         self.redirect('/ganglion/%s' % ganglion.key())