taskapp/utilities/helper.py
author nishanth
Sun, 28 Feb 2010 03:01:53 +0530
changeset 136 8632a44b743d
parent 119 39ab7c460143
permissions -rw-r--r--
deducing previous credits for a task using the request model. with a few changes, we can ditchax the credits model.

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