diff options
author | Roald de Vries <rdevries@thoughtworks.com> | 2016-10-05 15:54:49 -0300 |
---|---|---|
committer | Roald de Vries <rdevries@thoughtworks.com> | 2016-10-05 17:47:18 -0300 |
commit | 92ea61048c8b6fd037134f45bb0ce2182e7c99e5 (patch) | |
tree | b26efc50818cc9c31b73e7bcb4f0923bccd4ac24 /service | |
parent | cdd291f43689275409157d3cfd8d7e84fcd63f7d (diff) |
remove `set_portal`, it's not needed
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/application.py | 3 | ||||
-rw-r--r-- | service/pixelated/resources/login_resource.py | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py index 7e83299a..fe74790b 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -172,13 +172,12 @@ def set_up_protected_resources(root_resource, provider, services_factory, checke if not checker: checker = LeapPasswordChecker(provider) session_checker = SessionChecker(services_factory) - anonymous_resource = LoginResource(services_factory, disclaimer_banner=banner) realm = PixelatedRealm() _portal = portal.Portal(realm, [checker, session_checker, AllowAnonymousAccess()]) + anonymous_resource = LoginResource(services_factory, _portal, disclaimer_banner=banner) protected_resource = PixelatedAuthSessionWrapper(_portal, root_resource, anonymous_resource, []) - anonymous_resource.set_portal(_portal) root_resource.initialize(_portal, disclaimer_banner=banner) return protected_resource diff --git a/service/pixelated/resources/login_resource.py b/service/pixelated/resources/login_resource.py index 34cc7dd0..e19f9038 100644 --- a/service/pixelated/resources/login_resource.py +++ b/service/pixelated/resources/login_resource.py @@ -114,9 +114,6 @@ class LoginResource(BaseResource): with open(os.path.join(self._startup_folder, 'Interstitial.html')) as f: self.interstitial = f.read() - def set_portal(self, portal): - self._portal = portal - def getChild(self, path, request): if path == '': return self |