taskapp/utilities/helper.py
author nishanth
Tue, 02 Mar 2010 15:34:51 +0530
changeset 178 106909df0c17
parent 119 39ab7c460143
permissions -rw-r--r--
empty description for a task not allowed. white space around description trimmed.

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