changeset 119 | 39ab7c460143 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/taskapp/utilities/helper.py Fri Feb 26 16:02:32 2010 +0530 @@ -0,0 +1,8 @@ +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)]) +