# HG changeset patch # User Nishanth Amuluru # Date 1294369161 -19800 # Node ID 1773b48559e1773bd1608db72df40749323346d5 # Parent f4d062fb5f051885bf8c38bf03063c43da363a1e Added make_key to utils diff -r f4d062fb5f05 -r 1773b48559e1 utils.py --- a/utils.py Fri Jan 07 08:27:31 2011 +0530 +++ b/utils.py Fri Jan 07 08:29:21 2011 +0530 @@ -0,0 +1,8 @@ +import string,random + +def make_key(): + """ return a 10 character random key. + """ + + return ''.join([ random.choice(string.uppercase+string.digits) for i in range(10)]) +