summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 350dd2d)
raw | patch | inline | side by side (parent: 350dd2d)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 03:20:09 +0000 (03:20 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 03:20:09 +0000 (03:20 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1095 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/client.py | patch | blob | history |
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index 3dac1330a7154c5e64bae6a45c7ff9c890629a11..0e8f25cc472f30143ba487911e5a26ba2541b815 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.21 2002-09-09 00:45:06 richard Exp $
+# $Id: client.py,v 1.22 2002-09-09 03:20:09 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
def set_cookie(self, user, password):
# TODO generate a much, much stronger session key ;)
- self.session = binascii.b2a_base64(repr(time.time())).strip()
+ self.session = binascii.b2a_base64(repr(random.random())).strip()
# clean up the base64
if self.session[-1] == '=':
# see if all the required properties have been supplied
if required:
- raise ValueError, 'Required properties %s not supplied'%(
- ', '.join(required))
+ if len(required) > 1:
+ p = 'properties'
+ else:
+ p = 'property'
+ raise ValueError, 'Required %s %s not supplied'%(p, ', '.join(required))
return props