Skip to content

Commit

Permalink
Name optional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kofalt committed Mar 15, 2016
1 parent f470f9d commit bd8442a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/handlers/listhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def post(self, cont_name, list_name, **kwargs):
container, permchecker, storage, mongo_validator, payload_validator, keycheck = self._initialize_request(cont_name_plural, list_name, _id)
permchecker(noop)('POST', _id=_id)

return upload.process_upload(self.request, upload.Strategy.targeted, cont_name, _id, self.origin)
return upload.process_upload(self.request, upload.Strategy.targeted, container_type=cont_name, id=_id, origin=self.origin)

def packfile(self, cont_name, **kwargs):
_id = kwargs.pop('cid')
Expand All @@ -396,4 +396,4 @@ def packfile(self, cont_name, **kwargs):
else:
raise Exception('Not authorized')

return upload.process_upload(self.request, upload.Strategy.packfile, None, None, self.origin)
return upload.process_upload(self.request, upload.Strategy.packfile, origin=self.origin)

0 comments on commit bd8442a

Please sign in to comment.