summaryrefslogtreecommitdiff
path: root/paste/auth
diff options
context:
space:
mode:
authorcce <devnull@localhost>2005-12-14 18:42:14 +0000
committercce <devnull@localhost>2005-12-14 18:42:14 +0000
commit8a1a2d97cd184f0618ef8647e4964f8b6a90a9e7 (patch)
tree315bbf31a9fbcc368c15013b7a01fea150b8e201 /paste/auth
parentcde83b126e24b4cbf4c6e12b2748360c048bebd7 (diff)
downloadpaste-8a1a2d97cd184f0618ef8647e4964f8b6a90a9e7.tar.gz
migrating tests to use util.httpserver rather than util.baseserver
Diffstat (limited to 'paste/auth')
-rw-r--r--paste/auth/basic.py2
-rw-r--r--paste/auth/cas.py2
-rw-r--r--paste/auth/cookie.py2
-rw-r--r--paste/auth/digest.py2
-rw-r--r--paste/auth/form.py2
-rw-r--r--paste/auth/multi.py2
6 files changed, 6 insertions, 6 deletions
diff --git a/paste/auth/basic.py b/paste/auth/basic.py
index 8a7e787..39764a9 100644
--- a/paste/auth/basic.py
+++ b/paste/auth/basic.py
@@ -61,7 +61,7 @@ if '__main__' == __name__:
def userfunc(username, password):
return username == password
from paste.wsgilib import dump_environ
- from paste.util.baseserver import serve
+ from paste.util.httpserver import serve
from paste.httpexceptions import *
serve(HTTPExceptionHandler(
AuthBasicHandler(dump_environ, realm, userfunc)))
diff --git a/paste/auth/cas.py b/paste/auth/cas.py
index 193b79a..629fc85 100644
--- a/paste/auth/cas.py
+++ b/paste/auth/cas.py
@@ -88,7 +88,7 @@ __all__ = ['CASLoginFailure', 'CASAuthenticate', 'AuthCASHandler' ]
if '__main__' == __name__:
authority = "https://secure.its.yale.edu/cas/servlet/"
from paste.wsgilib import dump_environ
- from paste.util.baseserver import serve
+ from paste.util.httpserver import serve
from paste.httpexceptions import *
serve(HTTPExceptionHandler(
AuthCASHandler(dump_environ, authority)))
diff --git a/paste/auth/cookie.py b/paste/auth/cookie.py
index 96071d7..9ef1f35 100644
--- a/paste/auth/cookie.py
+++ b/paste/auth/cookie.py
@@ -222,7 +222,7 @@ if '__main__' == __name__:
return application(environ, start_response)
return authstupid_application
from paste.wsgilib import dump_environ
- from paste.util.baseserver import serve
+ from paste.util.httpserver import serve
from paste.httpexceptions import *
serve(AuthCookieHandler(
HTTPExceptionHandler(
diff --git a/paste/auth/digest.py b/paste/auth/digest.py
index 598a103..62cd1bf 100644
--- a/paste/auth/digest.py
+++ b/paste/auth/digest.py
@@ -187,7 +187,7 @@ if '__main__' == __name__:
def userfunc(realm, username):
return digest_password(username, realm, username)
from paste.wsgilib import dump_environ
- from paste.util.baseserver import serve
+ from paste.util.httpserver import serve
from paste.httpexceptions import *
serve(HTTPExceptionHandler(
AuthDigestHandler(dump_environ, realm, userfunc)))
diff --git a/paste/auth/form.py b/paste/auth/form.py
index b53952f..d32af2e 100644
--- a/paste/auth/form.py
+++ b/paste/auth/form.py
@@ -65,7 +65,7 @@ if '__main__' == __name__:
def userfunc(username, password):
return username == password
from paste.wsgilib import dump_environ
- from paste.util.baseserver import serve
+ from paste.util.httpserver import serve
from paste.httpexceptions import *
from cookie import AuthCookieHandler
serve(HTTPExceptionHandler(
diff --git a/paste/auth/multi.py b/paste/auth/multi.py
index 1b593ae..2fe3ba6 100644
--- a/paste/auth/multi.py
+++ b/paste/auth/multi.py
@@ -60,7 +60,7 @@ if '__main__' == __name__:
import basic, digest, cas, cookie, form
from paste.httpexceptions import *
from paste.wsgilib import dump_environ
- from paste.util.baseserver import serve
+ from paste.util.httpserver import serve
multi = MultiHandler(dump_environ)
multi.add_method('basic',basic.middleware,
'tag:clarkevans.com,2005:basic',