You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/05/27 13:57:46 UTC

[14/50] [abbrv] allura git commit: [#10278] ticket:764 Return result from ScriptTask to be saved in mongo

[#10278] ticket:764 Return result from ScriptTask to be saved in mongo


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/181bfb68
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/181bfb68
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/181bfb68

Branch: refs/heads/ib/7868
Commit: 181bfb68bfbc3b22d49654a42f0f5c27c270ab62
Parents: cb47a23
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue May 12 15:06:57 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Fri May 15 22:10:39 2015 +0000

----------------------------------------------------------------------
 Allura/allura/scripts/scripttask.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/181bfb68/Allura/allura/scripts/scripttask.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/scripttask.py b/Allura/allura/scripts/scripttask.py
index 0b9d2be..a8494c9 100644
--- a/Allura/allura/scripts/scripttask.py
+++ b/Allura/allura/scripts/scripttask.py
@@ -69,7 +69,7 @@ class ScriptTask(object):
             return task(type.__new__(meta, classname, bases, classDict))
 
     def __new__(cls, arg_string=''):
-        cls._execute_task(arg_string)
+        return cls._execute_task(arg_string)
 
     @classmethod
     def _execute_task(cls, arg_string):
@@ -77,7 +77,7 @@ class ScriptTask(object):
             options = cls.parser().parse_args(shlex.split(arg_string or ''))
         except SystemExit:
             raise Exception("Error parsing args: '%s'" % arg_string)
-        cls.execute(options)
+        return cls.execute(options)
 
     @classmethod
     def execute(cls, options):