taskapp/utilities/helper.py
author nishanth
Fri, 26 Feb 2010 17:49:26 +0530
changeset 122 daee11bdfbaa
parent 119 39ab7c460143
permissions -rw-r--r--
now rid is not the position argument. it is request id.

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