Example #1
0
 def _call_fini(self, *options, **kwds):
     for key in self._retval:
         if not key in self.outputs:
             raise RuntimeError("Cannot return value '%s' that is not a predefined output of a Functor task" % key)
         setattr(self, key, self._retval[key])
     TaskPlugin._call_fini(self, *options, **kwds)
     return self._retval
Example #2
0
 def _call_fini(self, *options, **kwds):
     for key in self._retval:
         if not key in self.outputs:
             raise RuntimeError(
                 "Cannot return value '%s' that is not a predefined output of a Functor task"
                 % key)
         setattr(self, key, self._retval[key])
     TaskPlugin._call_fini(self, *options, **kwds)
     return self._retval