def get(self, user_id): posuser = Uporabniki.get_by_id(int(user_id)) posuser.vidivse = True posuser.put() time.sleep(1) ##user = Uporabniki.query(Uporabniki.key.id() == user_id).fetch() self.redirect_to("admin1")
def get(self, user_id): posuser = Uporabniki.get_by_id(int(user_id)) ##user = Uporabniki.query(Uporabniki.key.id() == user_id).fetch() params = {"posuser": posuser} is_logged_in(params) return self.render_template("posuser.html" , params=params)