Ejemplo n.º 1
0
 def post(self):
     from afutils.mail_utils import validate_email
     from afutils.user_utils import invite_other
     handler_para = UserInvitePara(self)
     handler_json = InviteJson(self)
     usr = self.current_user
     if not validate_email(handler_para['email']):
         handler_json.by_status(3) 
         handler_json.write()
         return #invalid email
     status = invite_other(usr, handler_para['email'])
     handler_json.by_status(status)
     handler_json.write()
Ejemplo n.º 2
0
def is_email(email):
    from afutils.mail_utils import validate_email
    return validate_email(email)
Ejemplo n.º 3
0
def is_email(email):
    from afutils.mail_utils import validate_email
    return validate_email(email)