def generate_email(memberlike): try: addr = '*****@*****.**' % (slugify( memberlike.fname), slugify(memberlike.lname)) validate_email(addr) return addr except ValidationError as e: return '*****@*****.**' % (generate_unique_memberid(), random.randint(10, 2**16))
def generate_email(memberlike): try: addr = '*****@*****.**' % ( memberlike.fname.encode('ascii','ignore').decode('utf-8').lower(), memberlike.lname.encode('ascii','ignore').decode('utf-8').lower() ) validate_email(addr) return addr except ValidationError as e: return '*****@*****.**' % generate_unique_memberid()
def generate_email(memberlike): try: addr = '*****@*****.**' % ( slugify(memberlike.fname), slugify(memberlike.lname) ) validate_email(addr) return addr except ValidationError as e: return '*****@*****.**' % (generate_unique_memberid(), random.randint(10, 2 ** 16))