diff options
author | JCTutorius <charlie@tutorius-dev.(none)> | 2009-11-19 19:24:43 (GMT) |
---|---|---|
committer | JCTutorius <charlie@tutorius-dev.(none)> | 2009-11-19 19:24:43 (GMT) |
commit | 0aad746da763cc5abc1b22dab25c88b33ebf441c (patch) | |
tree | f464602006a32e1e1d306153062e63c34f0d0140 | |
parent | 40bbbd091ae330d572408613f3efdc82b3cb6a4e (diff) | |
parent | 828423257a30b8f59ce344de8fd02216d19efe12 (diff) |
Merge branch 'master' of gitorious@git.sugarlabs.org:tutorius/mainline
-rw-r--r-- | tutorius/store.py | 7 |
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'] |