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
b2536d41
Commit
b2536d41
authored
Jun 17, 2013
by
Kostas Papadimitriou
Browse files
pithos: api_method_not_allowed typo's
parent
b528fe9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-pithos-app/pithos/api/functions.py
View file @
b2536d41
...
...
@@ -99,7 +99,7 @@ def top_demux(request):
return
authenticate
(
request
)
return
account_list
(
request
)
else
:
return
api
.
method_not_allowed
(
request
)
return
api
.
api_
method_not_allowed
(
request
)
@
csrf_exempt
...
...
@@ -118,7 +118,7 @@ def account_demux(request, v_account):
elif
request
.
method
==
'GET'
:
return
container_list
(
request
,
v_account
)
else
:
return
api
.
method_not_allowed
(
request
)
return
api
.
api_
method_not_allowed
(
request
)
@
csrf_exempt
...
...
@@ -141,7 +141,7 @@ def container_demux(request, v_account, v_container):
elif
request
.
method
==
'GET'
:
return
object_list
(
request
,
v_account
,
v_container
)
else
:
return
api
.
method_not_allowed
(
request
)
return
api
.
api_
method_not_allowed
(
request
)
@
csrf_exempt
...
...
@@ -173,7 +173,7 @@ def object_demux(request, v_account, v_container, v_object):
elif
request
.
method
==
'DELETE'
:
return
object_delete
(
request
,
v_account
,
v_container
,
v_object
)
else
:
return
api
.
method_not_allowed
(
request
)
return
api
.
api_
method_not_allowed
(
request
)
@
api_method
(
'GET'
,
user_required
=
False
,
logger
=
logger
)
...
...
snf-pithos-app/pithos/api/public.py
View file @
b2536d41
...
...
@@ -54,7 +54,7 @@ def public_demux(request, v_public):
elif
request
.
method
==
'GET'
:
return
public_read
(
request
,
v_public
)
else
:
return
api
.
method_not_allowed
(
request
)
return
api
.
api_
method_not_allowed
(
request
)
@
api_method
(
http_method
=
"HEAD"
,
token_required
=
False
,
user_required
=
False
,
...
...
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