Beispiel #1
0
 def get(self):
     user = access.wall(self)
     if user:
         self.redirect('/' + user.user_id())
         self.response.out.write(user.user_id())
         s.w(access.logout_link(),self)
     else:
         pass
Beispiel #2
0
 def get(self):
     user = access.wall(self)
     if user:
         if (user.nickname() in settings.admins):        
             query = datastore.Query("registrant")
             query.Order('created')
             records = query.Get(999)
             self.response.out.write(pages.view(records))
Beispiel #3
0
 def get(self, the_key):
     user = access.wall(self)
     if user:
         if (user.nickname() in settings.admins):
             import form
             record = datastore.Get(the_key)
             self.response.out.write(form.form(record))
         else:
             self.redirect('/')
Beispiel #4
0
 def get(self):
     user = access.wall(self)
     if user:
         if (user.nickname() in settings.admins):        
             query = datastore.Query("registrant")
             query.Order('created')
             records = query.Get(999)
             #self.response.headers.add_header("Content-Type", 'text/csv')
             self.response.headers.add_header("Content-Disposition", "attachment; filename=registrants.xls")
             self.response.out.write(pages.xls(records))
Beispiel #5
0
 def get(self,user_id):
     user = access.wall(self)
     if user:
         self.post(user_id)
         if (user_id == user.user_id()):
             query = Post.all()
             query.filter("user ="******"-created")
             posts = query.fetch(999)
             s.w(pages.posts_page(posts,user),self)
         else:
             self.redirect('/')
     else:
         pass