示例#1
0
 def get(self):
     del_opins = Opinion.query(Opinion.deleted == True).fetch()
     params = {"del_opins": del_opins}
     return self.render_template("deleted-opinions.html", params)
示例#2
0
 def get(self):
     opinions = Opinion.query(Opinion.deleted == False).fetch()
     params = {"opinions": opinions}
     return self.render_template("opinions.html", params)
示例#3
0
 def get(self):
     if not users.is_current_user_admin():
         return self.write("You are not admin!")
     del_opins = Opinion.query(Opinion.deleted == True).fetch()
     params = {"del_opins": del_opins}
     return self.render_template("deleted-opinions.html", params)