taskapp/utilities/helper.py
author nishanth
Wed, 03 Mar 2010 04:45:38 +0530
changeset 186 c083ebb6f8d7
parent 119 39ab7c460143
permissions -rw-r--r--
finished the phase-2 successfully. added all the learnmore templates. hav to look for bugs if any.

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