diff options
author | James Simmons <jim@simmons.olpc> | 2009-07-26 17:32:59 (GMT) |
---|---|---|
committer | James Simmons <jim@simmons.olpc> | 2009-07-26 17:32:59 (GMT) |
commit | 6857671cee38b7146f04ada5a59f2fd19b87998d (patch) | |
tree | 3620e9da622bde480531c1a37789d5b7ae875cf7 /ReadEtextsActivity.py | |
parent | 5ced86f04af81d9bff637c95321afe4557279f9f (diff) |
modified: ReadEtextsActivity.py
Diffstat (limited to 'ReadEtextsActivity.py')
-rw-r--r-- | ReadEtextsActivity.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ReadEtextsActivity.py b/ReadEtextsActivity.py index bf12b04..fe4409c 100644 --- a/ReadEtextsActivity.py +++ b/ReadEtextsActivity.py @@ -1135,8 +1135,8 @@ class ReadEtextsActivity(activity.Activity): '%i' % time.time()) logger.debug("Saving file %s to datastore...", file_path) os.link(tempfile, file_path) - self.jobject.file_path = file_path - datastore.write(self.jobject, transfer_ownership=True) + self._jobject.file_path = file_path + datastore.write(self._jobject, transfer_ownership=True) logger.debug("Got document %s (%s) from tube %u", tempfile, suggested_name, tube_id) @@ -1204,11 +1204,11 @@ class ReadEtextsActivity(activity.Activity): return False # Assign a file path to download if one doesn't exist yet - if not self.jobject.file_path: + if not self._jobject.file_path: path = os.path.join(self.get_activity_root(), 'instance', 'tmp%i' % time.time()) else: - path = self.jobject.file_path + path = self._jobject.file_path # Pick an arbitrary tube we can try to download the document from try: |