Exemplo n.º 1
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')
Exemplo n.º 2
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()
Exemplo n.º 4
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()