From 828423257a30b8f59ce344de8fd02216d19efe12 Mon Sep 17 00:00:00 2001 From: Charlie Date: Thu, 19 Nov 2009 16:41:34 +0000 Subject: corrected bug in publish_tutorial in store --- 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'] -- cgit v0.9.1