diff options
author | drebs <drebs@riseup.net> | 2017-09-05 11:08:32 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-09-05 11:08:48 -0300 |
commit | 7f11438288b9db7553d4f17f8e5b0a7ebde887c7 (patch) | |
tree | c01c2b7550cc4abd912fd2172b1d64252b3f41cd /src | |
parent | 115bfd7ca890e5d1a9bdd9df88efc376211cec10 (diff) |
[refactor] follow new resource class style naming
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/soledad/server/_resource.py | 4 | ||||
-rw-r--r-- | src/leap/soledad/server/auth.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/leap/soledad/server/_resource.py b/src/leap/soledad/server/_resource.py index 7b326fef..e3693c80 100644 --- a/src/leap/soledad/server/_resource.py +++ b/src/leap/soledad/server/_resource.py @@ -24,7 +24,7 @@ from ._incoming import IncomingResource from ._wsgi import get_sync_resource -__all__ = ['PublicResource', 'SoledadAnonResource'] +__all__ = ['PublicResource', 'AnonymousResource'] class _Robots(Resource): @@ -35,7 +35,7 @@ class _Robots(Resource): '# you are not a robot, are you???') -class SoledadAnonResource(Resource): +class AnonymousResource(Resource): """ The parts of Soledad Server that unauthenticated users can see. diff --git a/src/leap/soledad/server/auth.py b/src/leap/soledad/server/auth.py index 65e1adaf..da13dc8c 100644 --- a/src/leap/soledad/server/auth.py +++ b/src/leap/soledad/server/auth.py @@ -39,7 +39,7 @@ from twisted.web.resource import IResource from leap.soledad.common.couch import couch_server -from ._resource import PublicResource, SoledadAnonResource +from ._resource import PublicResource, AnonymousResource from ._resource import LocalResource from ._blobs import BlobsResource from ._config import get_config @@ -58,7 +58,7 @@ class SoledadRealm(object): blobs = conf['blobs'] blobs_resource = BlobsResource("filesystem", conf['blobs_path']) if blobs else None - self.anon_resource = SoledadAnonResource( + self.anon_resource = AnonymousResource( enable_blobs=blobs) self.auth_resource = PublicResource( blobs_resource=blobs_resource, @@ -84,7 +84,7 @@ class LocalServicesRealm(object): def __init__(self): conf = get_config() - self.anon_resource = SoledadAnonResource( + self.anon_resource = AnonymousResource( enable_blobs=conf['blobs']) self.auth_resource = LocalResource() |