From b8c5cca98f2b278c9ba6d81e7c3d70b01f76d95b Mon Sep 17 00:00:00 2001 From: Ben Tremblay Date: Fri, 06 Nov 2009 17:50:56 +0000 Subject: minor fix to publish function --- (limited to 'tutorius/store.py') diff --git a/tutorius/store.py b/tutorius/store.py index 2e55d71..cf20dd0 100644 --- a/tutorius/store.py +++ b/tutorius/store.py @@ -328,14 +328,9 @@ class StoreProxy(object): return tutorial_store_id - if self.helper.iserror(response): - return False - - return True - # Otherwise, we want to publish a new tutorial if tutorial_info == None: - return False + return -1 request_url = "/%s/publish/" % (self.tutorius_api) @@ -354,11 +349,6 @@ class StoreProxy(object): return id - if self.helper.iserror(response): - return False - - return True - def unpublish(self, tutorial_store_id): """ Removes a tutorial from the server. The user in the current session -- cgit v0.9.1