You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/08/21 23:19:10 UTC
git commit: [#3154] few minor fixes
Updated Branches:
refs/heads/db/3154b 9cbde4c38 -> a6e42fc41
[#3154] few minor fixes
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/a6e42fc4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/a6e42fc4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/a6e42fc4
Branch: refs/heads/db/3154b
Commit: a6e42fc41aef481bc5f1cfe43af6a7e1edfcfba7
Parents: 9cbde4c
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Wed Aug 21 21:19:04 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Wed Aug 21 21:19:04 2013 +0000
----------------------------------------------------------------------
Allura/allura/model/project.py | 2 +-
Allura/allura/tasks/export_tasks.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a6e42fc4/Allura/allura/model/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index f57dc34..ebccb3d 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -887,7 +887,7 @@ class Project(MappedClass, ActivityNode, ActivityObject):
export_task = MonQTask.query.get(**q)
if not export_task:
return
- if export_task.state in ('busy', 'ready'):
+ else:
return 'busy'
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a6e42fc4/Allura/allura/tasks/export_tasks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tasks/export_tasks.py b/Allura/allura/tasks/export_tasks.py
index ee07057..06590021 100644
--- a/Allura/allura/tasks/export_tasks.py
+++ b/Allura/allura/tasks/export_tasks.py
@@ -77,7 +77,7 @@ def _bulk_export(project, tools, user):
zip_and_cleanup(project, export_filename)
else:
log.error('Nothing to export')
- None
+ return None
if not user:
log.info('No user. Skipping notification.')
@@ -115,8 +115,8 @@ def create_export_dir(project, export_filename):
def zip_and_cleanup(project, export_filename):
"""
- Zip exported data. Copy it to proper location. Remove temporary files.
- Returns base filename of zip file
+ Zip exported data for a given project and filename (no path).
+ Copy it to proper location. Remove temporary files.
"""
path = project.bulk_export_path()
temp = os.path.join(path, export_filename.split('.')[0])