def __init__(self, fn, *tasklist):
        self.fn = fn

        tl = ((("%0" + str(math.ceil(math.log(len(tasklist), 10))) + "d") % k, v)
              for k, v in enumerate(tasklist))
        d = dict(tl)

        BuildTarget.__init__(self, d)
    def __init__(self, args):
        """
        args: A "struct" of configuration options (typically, parsed
            command-line arguments).  The only supported member is 'taskargs',
            which must provide the name of the new ontology file.
        """
        BuildTarget.__init__(self)

        self.args = args
    def __init__(self, foldi, foldfn, *tasklist):
        self.foldi = foldi
        """the initial value for the fold"""

        self.foldfn = foldfn
        """the function to fold with"""

        tl = ((("%" + str(len(tasklist)) + "d") % k, v)
              for k, v in enumerate(tasklist))
        d = dict(tl)

        BuildTarget.__init__(self, d)
    def __init__(self, args):
        """
        args: A "struct" of configuration options (typically, parsed
            command-line arguments).  The only required members are
            'search_ont', which is a list of paths to one or more ontology
            files; 'input_data', which is the path to a set of search terms
            (can be empty); and 'fileout', which is the path to an output file
            (can be empty).
        """
        BuildTarget.__init__(self)

        # This build target does not have any dependencies, since all input is
        # external and does not depend on other build tasks.

        self.search_onts = args.search_ont
        self.tfpath = args.input_data.strip()
        self.outpath = args.fileout.strip()

        self._checkInputFiles()
 def register_with_context(self, myname, context):
     BuildTarget.register_with_context(self, myname, context)
     self.task.name = myname + ".mapped_task" 
    def __init__(self, task, binding={}):
        self.task = task;

        BuildTarget.__init__(self, binding)