diff options
author | Charlie <charlie@tutorius-dev.(none)> | 2009-11-19 16:41:34 (GMT) |
---|---|---|
committer | Charlie <charlie@tutorius-dev.(none)> | 2009-11-19 16:48:15 (GMT) |
commit | 828423257a30b8f59ce344de8fd02216d19efe12 (patch) | |
tree | 254a4cdea850da4baaafe296d716e1574d77bd96 /tutorius/store.py | |
parent | d9d397fcc0139ccf940e268972069dad5730b8e8 (diff) |
corrected bug in publish_tutorial in store
Diffstat (limited to 'tutorius/store.py')
-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'] |