taskapp/utilities/helper.py
author nishanth
Tue, 02 Mar 2010 04:19:22 +0530
changeset 171 8f31ed9817fa
parent 119 39ab7c460143
permissions -rw-r--r--
now view_task page also shows tags for the task.

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