Exemple #1
0
 def get(self):
     zsite_user_verifyed = ZsiteUserVerifyed.get(
         state=ZSITE_USER_VERIFYED_UNCHECK)
     if not zsite_user_verifyed:
         return self.redirect("/")
     zsite = Zsite.mc_get(zsite_user_verifyed.user_id)
     self.render(zsite=zsite)
Exemple #2
0
 def get(self, id):
     zsite_user_verifyed = ZsiteUserVerifyed.get(
         user_id=id, state=ZSITE_USER_VERIFYED_UNCHECK)
     if zsite_user_verifyed:
         zsite_user_verifyed.state = ZSITE_USER_VERIFYED_CHECKED
         zsite_user_verifyed.save()
     return self.redirect("/zsite/verify/uncheck")