summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 893c797)
raw | patch | inline | side by side (parent: 893c797)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 10 Sep 2003 13:04:05 +0000 (13:04 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 10 Sep 2003 13:04:05 +0000 (13:04 +0000) |
registration confirmation. Py2.1's string.letters also depends on locales, so
we can't use it.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1874 57a73879-2fb5-44c3-a270-3262357dd7e2
we can't use it.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1874 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 306a3798e266d2e96851c33603366c6d143392c1..efe59c4b4c8b0e523f21dcc876170770b1e0ec75 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.138 2003-09-08 21:08:18 jlgijsbers Exp $
+# $Id: client.py,v 1.139 2003-09-10 13:04:05 jlgijsbers Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
import os, os.path, cgi, StringIO, urlparse, re, traceback, mimetypes, urllib
import binascii, Cookie, time, random, MimeWriter, smtplib, socket, quopri
-import stat, rfc822, string
+import stat, rfc822
from roundup import roundupdb, date, hyperdb, password, token, rcsv
from roundup.i18n import _
pass
# used by a couple of routines
-if hasattr(string, 'ascii_letters'):
- chars = string.ascii_letters+string.digits
-else:
- # python2.1 doesn't have ascii_letters
- chars = string.letters+string.digits
+chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
# XXX actually _use_ FormError
class FormError(ValueError):