Skip to content
This repository was archived by the owner on Dec 27, 2018. It is now read-only.

Hi! What about my fixes? #5

Merged
merged 2 commits into from
Jul 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions PythonConfluenceAPI/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def create_new_private_space(self, space_definition, callback=None):

def update_content_by_id(self, content_data, content_id, callback=None):
assert isinstance(content_data, dict) and set(content_data.keys()) >= self.UPDATE_CONTENT_REQUIRED_KEYS
return self._service_put_request("rest/api/content/{id}".format(content_id), data=json.dumps(content_data),
return self._service_put_request("rest/api/content/{id}".format(id=content_id), data=json.dumps(content_data),
headers={"Content-Type": "application/json"}, callback=callback)

def update_attachment_metadata(self, content_id, attachment_id, new_metadata, callback=None):
Expand Down Expand Up @@ -618,7 +618,7 @@ def delete_content_by_id(self, content_id, status=None, callback=None):
params = {}
if status:
params["status"] = status
return self._service_delete_request("rest/api/content/{id}".format(content_id), params=params,
return self._service_delete_request("rest/api/content/{id}".format(id=content_id), params=params,
callback=callback)

def delete_label_by_id(self, content_id, label_name, callback=None):
Expand All @@ -632,4 +632,4 @@ def delete_property(self, content_id, property_key, callback=None):

def delete_space(self, space_key, callback=None):
return self._service_delete_request("rest/api/space/{key}".format(key=space_key),
callback=callback)
callback=callback)