taskapp/utilities/helper.py
author nishanth
Tue, 02 Mar 2010 03:57:56 +0530
changeset 169 229bed827965
parent 119 39ab7c460143
permissions -rw-r--r--
fixed a bug in home page for guests.

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