예제 #1
0
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))
예제 #2
0
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()
예제 #3
0
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))
예제 #4
0
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()