taskapp/utilities/helper.py
author nishanth
Mon, 01 Mar 2010 05:46:13 +0530
changeset 160 05157d35d66f
parent 119 39ab7c460143
permissions -rw-r--r--
imposed a constraint that edit_task url is not displayed if task is OP and has claimed_users.

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