From 0aad746da763cc5abc1b22dab25c88b33ebf441c Mon Sep 17 00:00:00 2001 From: JCTutorius Date: Thu, 19 Nov 2009 19:24:43 +0000 Subject: Merge branch 'master' of gitorious@git.sugarlabs.org:tutorius/mainline --- (limited to 'tutorius/store.py') 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