From 8fa81ff3b2cf0422098395ec9918d5b547fbbca5 Mon Sep 17 00:00:00 2001 From: Roald de Vries Date: Wed, 5 Oct 2016 15:25:42 -0300 Subject: remove pixelated realm's init parameters They weren't used. Currently, the PixelatedAuthSessionWrapper determines the resource to use for a user. It would be more idiomatic to have the realm determine that. Actually, it should return the avatar as an IResource. See http://twistedmatrix.com/documents/current/web/howto/web-in-60/http-auth.html --- service/pixelated/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/pixelated/application.py') diff --git a/service/pixelated/application.py b/service/pixelated/application.py index 15155386..7e83299a 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -174,7 +174,7 @@ def set_up_protected_resources(root_resource, provider, services_factory, checke session_checker = SessionChecker(services_factory) anonymous_resource = LoginResource(services_factory, disclaimer_banner=banner) - realm = PixelatedRealm(root_resource, anonymous_resource) + realm = PixelatedRealm() _portal = portal.Portal(realm, [checker, session_checker, AllowAnonymousAccess()]) protected_resource = PixelatedAuthSessionWrapper(_portal, root_resource, anonymous_resource, []) -- cgit v1.2.3