taskapp/utilities/helper.py
author nishanth
Mon, 01 Mar 2010 02:09:00 +0530
changeset 155 52958289d81f
parent 119 39ab7c460143
permissions -rw-r--r--
now if a task has subs, it will remain locked forever.

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