taskapp/utilities/helper.py
author nishanth
Sat, 27 Feb 2010 14:38:01 +0530
changeset 130 9417ae986d2a
parent 119 39ab7c460143
permissions -rw-r--r--
added __unicode__ method to notification and removed useless comments in reply_to_request.

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