def get(self): from model.user_mail import UserMail mail = self.get_argument('mail','').strip().lower() user_mail = UserMail.get(mail=mail) if user_mail: self.finish(str(user_mail.id)) else: self.finish('0')
def get(self): from model.user_mail import UserMail mail = self.get_argument('mail', '').strip().lower() user_mail = UserMail.get(mail=mail) if user_mail: self.finish(str(user_mail.id)) else: self.finish('0')
def check(): for z in Zsite.where(): um = UserMail.get(user_id=z.id) print z.id if um: if z.state <= ZSITE_STATE_APPLY: um.state = MAIL_UNVERIFY um.save() else: um.state = MAIL_LOGIN um.save()