def __call__(self, *params, **kw):
        """Either submit a job, if the task is synchronous, or execute it,
           if it is synchronous. Note that the GPJob and GPExecutionResult
           objects both have the C{.running} property that will return True
           while the job is running in the case of a job, and always return
           False with the case of the execution result. This can be used to
           treat both types of execution as the same in your code; with the
           idiom
           
              >>> result = task(Param_1, Param_2, Param_3, ...)
              >>> while result.running:
              ...     time.sleep(0.125)
              >>> print result.Output1
        """
        if self.synchronous:
            return self.Execute(*params, **kw)
        else:
            return self.SubmitJob(*params, **kw)
def __call__ ( self , * params , ** kw ) : if self . synchronous : return self . Execute ( * params , ** kw ) else : return self . SubmitJob ( * params , ** kw )
Either submit a job, if the task is synchronous, or execute it,
           if it is synchronous. Note that the GPJob and GPExecutionResult
           objects both have the C{.running} property that will return True
           while the job is running in the case of a job, and always return
           False with the case of the execution result. This can be used to
           treat both types of execution as the same in your code; with the
           idiom
           
              >>> result = task(Param_1, Param_2, Param_3, ...)
              >>> while result.running:
              ...     time.sleep(0.125)
              >>> print result.Output1