Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tutorius/store.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tutorius/store.py b/tutorius/store.py
index dc52c82..565295d 100644
--- a/tutorius/store.py
+++ b/tutorius/store.py
@@ -343,10 +343,10 @@ class StoreProxy(object):
xml_response = minidom.parseString(response['body'])
- id_node = xml_response.getElementsByTagName("id")[0]
+ id_node = xml_response.getElementsByTagName("id")[0].firstChild
+
+ id = id_node.nodeValue
- id = id_node.getAttribute('value')
-
return id
def unpublish(self, tutorial_store_id):
@@ -423,7 +423,6 @@ class StoreProxyHelper(object):
@param response The XML response from the server
@return True if the response is an error
"""
-
# first look for HTTP errors
http_status = response['headers']['status']