diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-03-31 14:55:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-31 14:55:04 +0200 |
commit | 1873ed81705399658ce7628f1148327a5c595909 (patch) | |
tree | 7abea01f509a5efc136dfddbf260f60d80268186 /src/web/views/api | |
parent | Renew certificate. (diff) | |
parent | Correct spelling mistakes. (diff) | |
download | newspipe-1873ed81705399658ce7628f1148327a5c595909.tar.gz newspipe-1873ed81705399658ce7628f1148327a5c595909.tar.bz2 newspipe-1873ed81705399658ce7628f1148327a5c595909.zip |
Merge pull request #37 from EdwardBetts/spelling
Correct spelling mistakes.
Diffstat (limited to 'src/web/views/api')
-rw-r--r-- | src/web/views/api/v2/common.py | 6 | ||||
-rw-r--r-- | src/web/views/api/v3/common.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/web/views/api/v2/common.py b/src/web/views/api/v2/common.py index 04b19d78..8a53d7e6 100644 --- a/src/web/views/api/v2/common.py +++ b/src/web/views/api/v2/common.py @@ -45,7 +45,7 @@ def authenticate(func): if not ucontr.check_password(user, request.authorization.password): raise Forbidden("Couldn't authenticate your user") if not user.is_active: - raise Forbidden("User is desactivated") + raise Forbidden("User is deactivated") login_user_bundle(user) if current_user.is_authenticated: return func(*args, **kwargs) @@ -116,7 +116,7 @@ class PyAggResourceNew(PyAggAbstractResource): class PyAggResourceExisting(PyAggAbstractResource): def get(self, obj_id=None): - """Retreive a single object""" + """Retrieve a single object""" return self.controller.get(id=obj_id) def put(self, obj_id=None): @@ -216,7 +216,7 @@ class PyAggResourceMulti(PyAggAbstractResource): except Exception as error: status = 206 results.append(error) - # if no operation succeded, it's not partial anymore, returning err 500 + # if no operation succeeded, it's not partial anymore, returning err 500 if status == 206 and results.count('ok') == 0: status = 500 return results, status diff --git a/src/web/views/api/v3/common.py b/src/web/views/api/v3/common.py index eb354482..b2a5ea3f 100644 --- a/src/web/views/api/v3/common.py +++ b/src/web/views/api/v3/common.py @@ -47,7 +47,7 @@ def auth_func(*args, **kw): raise ProcessingException("Couldn't authenticate your user", code=401) if not user.is_active: - raise ProcessingException("User is desactivated", code=401) + raise ProcessingException("User is deactivated", code=401) login_user_bundle(user) if not current_user.is_authenticated: raise ProcessingException(description='Not authenticated!', code=401) |