Permalink
Browse files

TG 2.2 doesn't use testutil anymore, it is a dependency that prevents…

… from using repoze.who v2
  • Loading branch information...
1 parent b459230 commit 7ffa02e4498a487bbc2311cf0d41940b98860a0c @amol- amol- committed Jun 26, 2012
Showing with 1 addition and 2 deletions.
  1. +0 −1 setup.py
  2. +1 −1 tgming/auth.py
View
@@ -29,7 +29,6 @@
install_requires=[
"repoze.who-friendlyform >= 1.0.4",
"repoze.who >= 1.0.19",
- "repoze.who-testutil >= 1.0.1",
"ming"
# -*- Extra requirements: -*-
],
View
@@ -2,7 +2,6 @@
from repoze.who.interfaces import IAuthenticator, IMetadataProvider
from repoze.who.plugins.friendlyform import FriendlyFormPlugin
from repoze.who.plugins.auth_tkt import AuthTktCookiePlugin
-from repoze.who.plugins.testutil import make_middleware
class MingAuthenticatorPlugin(object):
implements(IAuthenticator)
@@ -66,6 +65,7 @@ def setup_ming_auth(app, skip_authentication, **auth_args):
provider = MingUserMDPlugin(user_class=auth_args['user_class'])
mdproviders = [('ming_user_md', provider)]
+ from repoze.who.plugins.testutil import make_middleware
from repoze.who.classifiers import default_request_classifier
from repoze.who.classifiers import default_challenge_decider

0 comments on commit 7ffa02e

Please sign in to comment.