taskapp/utilities/helper.py
author nishanth
Sun, 28 Feb 2010 14:44:10 +0530
changeset 143 796ff9e279a8
parent 119 39ab7c460143
permissions -rw-r--r--
now if a user accepts to be a mentor, all his pending reqs will be made invalid.

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)])