summaryrefslogtreecommitdiff
path: root/paste/auth
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2007-01-05 03:18:34 +0000
committerpjenvey <devnull@localhost>2007-01-05 03:18:34 +0000
commitc3489449893fc6facc58dd06a2ea13091d9096fa (patch)
tree94c8bd85450992880b8796ab592896c56d69e69c /paste/auth
parentdc929a2a6569b1ec4d30e5ba4f3741c07c47b4ce (diff)
downloadpaste-c3489449893fc6facc58dd06a2ea13091d9096fa.tar.gz
convert old-style classes to new-style classes
Diffstat (limited to 'paste/auth')
-rw-r--r--paste/auth/basic.py4
-rw-r--r--paste/auth/cookie.py4
-rw-r--r--paste/auth/digest.py4
-rw-r--r--paste/auth/form.py2
-rw-r--r--paste/auth/multi.py2
5 files changed, 8 insertions, 8 deletions
diff --git a/paste/auth/basic.py b/paste/auth/basic.py
index c51dde5..69db128 100644
--- a/paste/auth/basic.py
+++ b/paste/auth/basic.py
@@ -24,7 +24,7 @@ serving on...
from paste.httpexceptions import HTTPUnauthorized
from paste.httpheaders import *
-class AuthBasicAuthenticator:
+class AuthBasicAuthenticator(object):
"""
implements ``Basic`` authentication details
"""
@@ -52,7 +52,7 @@ class AuthBasicAuthenticator:
__call__ = authenticate
-class AuthBasicHandler:
+class AuthBasicHandler(object):
"""
HTTP/1.0 ``Basic`` authentication middleware
diff --git a/paste/auth/cookie.py b/paste/auth/cookie.py
index a650436..8a7ccaf 100644
--- a/paste/auth/cookie.py
+++ b/paste/auth/cookie.py
@@ -70,7 +70,7 @@ def new_secret():
""" returns a 64 byte secret """
return ''.join(random.sample(_all_chars, 64))
-class AuthCookieSigner:
+class AuthCookieSigner(object):
"""
save/restore ``environ`` entries via digially signed cookie
@@ -180,7 +180,7 @@ class AuthCookieEnviron(list):
return
list.append(self, str(value))
-class AuthCookieHandler:
+class AuthCookieHandler(object):
"""
the actual handler that should be put in your middleware stack
diff --git a/paste/auth/digest.py b/paste/auth/digest.py
index ad5e4a3..229a03d 100644
--- a/paste/auth/digest.py
+++ b/paste/auth/digest.py
@@ -37,7 +37,7 @@ def digest_password(realm, username, password):
""" construct the appropriate hashcode needed for HTTP digest """
return md5.md5("%s:%s:%s" % (username, realm, password)).hexdigest()
-class AuthDigestAuthenticator:
+class AuthDigestAuthenticator(object):
""" implementation of RFC 2617 - HTTP Digest Authentication """
def __init__(self, realm, authfunc):
self.nonce = {} # list to prevent replay attacks
@@ -119,7 +119,7 @@ class AuthDigestAuthenticator:
__call__ = authenticate
-class AuthDigestHandler:
+class AuthDigestHandler(object):
"""
middleware for HTTP Digest authentication (RFC 2617)
diff --git a/paste/auth/form.py b/paste/auth/form.py
index f376cdd..0417b38 100644
--- a/paste/auth/form.py
+++ b/paste/auth/form.py
@@ -44,7 +44,7 @@ TEMPLATE = """\
</html>
"""
-class AuthFormHandler:
+class AuthFormHandler(object):
"""
HTML-based login middleware
diff --git a/paste/auth/multi.py b/paste/auth/multi.py
index e3516c2..b378fa6 100644
--- a/paste/auth/multi.py
+++ b/paste/auth/multi.py
@@ -32,7 +32,7 @@ serving on...
"""
-class MultiHandler:
+class MultiHandler(object):
"""
Multiple Authentication Handler