Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Tremblay <benoit.tremblay1@gmail.com>2009-11-06 17:50:56 (GMT)
committer Ben Tremblay <benoit.tremblay1@gmail.com>2009-11-06 17:50:56 (GMT)
commitb8c5cca98f2b278c9ba6d81e7c3d70b01f76d95b (patch)
treef9fb0dbd27949e87e0114d1111e3da4f0961dfaa
parentdb9ce576a739dac904da0f1ac806cd9d39fc21b7 (diff)
minor fix to publish function
-rw-r--r--tutorius/store.py12
1 files changed, 1 insertions, 11 deletions
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