From ef28b7f2c1f12c9dde51db358db778cfdbb3e056 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 23 Jul 2014 13:01:30 +0200 Subject: [PATCH] Add job.setprogress to testmodule.py. --- src/modules/testmodule.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/testmodule.py b/src/modules/testmodule.py index 5de9bdcac..153298ffe 100755 --- a/src/modules/testmodule.py +++ b/src/modules/testmodule.py @@ -29,6 +29,9 @@ class Job: self.workingPath = workingPath self.configuration = doc[ "configuration" ] + def setprogress( self, progress ): + print ( "Job set progress to {}%.".format( progress * 100 ) ) + # Usage: ./testmodule.py [global_storage yaml file] def main( args ): moduledirpath = os.path.abspath( sys.argv[ 2 ] )