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
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))
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('/')
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))
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