Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
8a221a91
Commit
8a221a91
authored
Apr 05, 2013
by
Sofia Papagiannaki
Browse files
astakos api: remove statements of no effect
parent
7aa4f62f
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/api/__init__.py
View file @
8a221a91
...
...
@@ -237,7 +237,6 @@ def __get_uuid_displayname_catalogs(request, user_call=True):
'displayname_catalog'
:
AstakosUser
.
objects
.
displayname_catalog
(
displaynames
)}
response
=
HttpResponse
()
response
.
status
=
200
response
.
content
=
json
.
dumps
(
d
)
response
[
'Content-Type'
]
=
'application/json; charset=UTF-8'
response
[
'Content-Length'
]
=
len
(
response
.
content
)
...
...
snf-astakos-app/astakos/im/api/user.py
View file @
8a221a91
...
...
@@ -90,7 +90,7 @@ def api_method(http_method=None, token_required=False, perms=None):
@
api_method
(
http_method
=
'GET'
,
token_required
=
True
)
def
authenticate
(
request
,
user
=
None
):
# Normal Response Codes: 20
4
# Normal Response Codes: 20
0
# Error Response Codes: internalServerError (500)
# badRequest (400)
# unauthorised (401)
...
...
@@ -109,7 +109,6 @@ def authenticate(request, user=None):
raise
Unauthorized
(
'Pending approval terms'
)
response
=
HttpResponse
()
response
.
status
=
204
user_info
=
{
'id'
:
user
.
id
,
'username'
:
user
.
username
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment