taskapp/utilities/helper.py
author nishanth
Fri, 26 Feb 2010 16:02:32 +0530
changeset 119 39ab7c460143
permissions -rw-r--r--
did lots and now id field in task is a random key

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