taskapp/utilities/helper.py
author nishanth
Sun, 28 Feb 2010 13:25:24 +0530
changeset 141 2489392ffb56
parent 119 39ab7c460143
permissions -rw-r--r--
added the functionality to request a user to be AD MG DV.

import string,random

def get_key():
    """ return a 10 character random key.
    """
    
    return ''.join([ random.choice(string.uppercase+string.digits) for i in range(10)])