예제 #1
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for TopicsSet.'''
     tracer.debug("Calling pre.")
     FuncCall.pcall(executor, func_prefix + "topic_set_pre", self)
     tracer.debug("Calling sub topic.")
     self.__topic_set.execute(executor, func_prefix)
     tracer.debug("Calling post.")
     FuncCall.pcall(executor, func_prefix + "topic_set_post", self)
     tracer.debug("Finished.")
예제 #2
0
파일: TopicSetWCI.py 프로젝트: kown7/rmtoo
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for TopicsSet.'''
     tracer.debug("Calling pre.")
     FuncCall.pcall(executor, func_prefix + "topic_set_pre", self)
     tracer.debug("Calling sub topic.")
     self.__topic_set.execute(executor, func_prefix)
     tracer.debug("Calling post.")
     FuncCall.pcall(executor, func_prefix + "topic_set_post", self)
     tracer.debug("Finished.")
예제 #3
0
 def execute(self, executor, func_prefix):
     """Execute the parts which are needed for TopicsContinuumSet."""
     tracer.debug("Calling pre.")
     FuncCall.pcall(executor, func_prefix + "topic_continuum_set_pre", self)
     tracer.debug("Calling sub.")
     for continuum in executor.topic_continuum_set_sort(self.__continuum.values()):
         continuum.execute(executor, func_prefix)
     tracer.debug("Calling Post")
     FuncCall.pcall(executor, func_prefix + "topic_continuum_set_post", self)
     tracer.debug("Finished.")
예제 #4
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for TopicsContinuum.'''
     tracer.debug("Calling pre [%s]", self.__name)
     FuncCall.pcall(executor, func_prefix + "topic_continuum_pre", self)
     tracer.debug("Calling sub [%s]", self.__name)
     for topic_set in executor.topic_continuum_sort(self.__vcs_commit_ids,
                                                    self.__topic_sets):
         topic_set.execute(executor, func_prefix)
     tracer.debug("Calling post [%s]", self.__name)
     FuncCall.pcall(executor, func_prefix + "topic_continuum_post", self)
     tracer.debug("Finished [%s]", self.__name)
예제 #5
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for RequirementSet.'''
     tracer.debug("calling pre")
     FuncCall.pcall(executor, func_prefix + "requirement_set_pre", self)
     tracer.debug("calling sub requirement set")
     for requirement in executor.requirement_set_sort(
                         self._named_nodes.values()):
         requirement.execute(executor, func_prefix)
     tracer.debug("calling post")
     FuncCall.pcall(executor, func_prefix + "requirement_set_post", self)
     tracer.debug("finished")
예제 #6
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for RequirementSet.'''
     tracer.debug("calling pre")
     FuncCall.pcall(executor, func_prefix + "requirement_set_pre", self)
     tracer.debug("calling sub requirement set")
     for requirement in executor.requirement_set_sort(
             self.__requirements.values()):
         requirement.execute(executor, func_prefix)
     tracer.debug("calling post")
     FuncCall.pcall(executor, func_prefix + "requirement_set_post", self)
     tracer.debug("finished")
예제 #7
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for TopicsContinuum.'''
     tracer.debug("Calling pre [%s]." % self.__name)
     FuncCall.pcall(executor, func_prefix + "topic_continuum_pre", self)
     tracer.debug("Calling sub [%s]." % self.__name)
     for topic_set in executor.topic_continuum_sort(
             self.__vcs_commit_ids, self.__topic_sets):
         topic_set.execute(executor, func_prefix)
     tracer.debug("Calling post [%s]." % self.__name)
     FuncCall.pcall(executor, func_prefix + "topic_continuum_post", self)
     tracer.debug("Finished [%s]." % self.__name)
예제 #8
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for TopicsContinuumSet.'''
     tracer.debug("Calling pre.")
     FuncCall.pcall(executor, func_prefix + 'topic_continuum_set_pre', self)
     tracer.debug("Calling sub.")
     for continuum in executor.topic_continuum_set_sort(
             self.__continuum.values()):
         continuum.execute(executor, func_prefix)
     tracer.debug("Calling Post")
     FuncCall.pcall(executor, func_prefix + 'topic_continuum_set_post',
                    self)
     tracer.debug("Finished.")
예제 #9
0
파일: Output.py 프로젝트: florath/rmtoo
    def __common_topic_continuum_pre(self, topic_continuum, special):
        '''Common method used by cmad_ and normal callback.'''
        tracer.info("Called.")
        output_config = topic_continuum.get_output_config()

        for oconfig_name, oconfig in iteritems(output_config):
            for cfg in oconfig:
                output_obj = self.__plugin_manager[oconfig_name].plugin(cfg)
                if special != "":
                    FuncCall.pcall(output_obj, "init_" + special,
                                   self.__cmad_file)
                topic_continuum.execute(output_obj, special)
        tracer.info("Finished.")
예제 #10
0
파일: Output.py 프로젝트: kown7/rmtoo
    def __common_topic_continuum_pre(self, topic_continuum, special):
        '''Common method used by cmad_ and normal callback.'''
        tracer.info("Called.")
        output_config = topic_continuum.get_output_config()

        for oconfig_name, oconfig in iteritems(output_config):
            for cfg in oconfig:
                output_obj = self.__plugin_manager[oconfig_name].plugin(cfg)
                if special != "":
                    FuncCall.pcall(output_obj, "init_" + special,
                                   self.__cmad_file)
                topic_continuum.execute(output_obj, special)
        tracer.info("Finished.")
예제 #11
0
파일: Output.py 프로젝트: apre/rmtoo
    def __common_topic_continuum_pre(self, topic_continuum, special):
        '''Common method used by cmad_ and normal callback.'''
        tracer.info("Called.")
        output_config = topic_continuum.get_output_config()

        for oconfig_name, oconfig in output_config.iteritems():
            self.__ostats.append(oconfig_name)
            output_module_cstr = self.__create_output_module(oconfig_name)
            for cfg in oconfig:
                output_obj = output_module_cstr(cfg)
                if special != "":
                    FuncCall.pcall(output_obj, "init_" + special,
                                   self.__cmad_file)
                topic_continuum.execute(output_obj, special)
        tracer.info("Finished.")
예제 #12
0
파일: Output.py 프로젝트: samjaninf/rmtoo
    def __common_topic_continuum_pre(self, topic_continuum, special):
        '''Common method used by cmad_ and normal callback.'''
        tracer.info("Called.")
        output_config = topic_continuum.get_output_config()

        for oconfig_name, oconfig in output_config.iteritems():
            self.__ostats.append(oconfig_name)
            output_module_cstr = self.__create_output_module(oconfig_name)
            for cfg in oconfig:
                output_obj = output_module_cstr(cfg)
                if special != "":
                    FuncCall.pcall(output_obj, "init_" + special,
                                   self.__cmad_file)
                topic_continuum.execute(output_obj, special)
        tracer.info("Finished.")
예제 #13
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for Requirement.'''
     tracer.debug("Called: name [%s]." % self.get_name())
     FuncCall.pcall(executor, func_prefix + "requirement", self)
     tracer.debug("Finished: name [%s]." % self.get_name())
예제 #14
0
 def execute(self, executor, func_prefix):
     '''Execute the parts which are needed for Requirement.'''
     tracer.debug("Called: name [%s]." % self.get_name())
     FuncCall.pcall(executor, func_prefix + "requirement", self)
     tracer.debug("Finished: name [%s]." % self.get_name())
예제 #15
0
    def execute(self, executor, func_prefix):
        '''Execute the parts which are needed for TopicsContinuum.'''
        tracer.debug("Calling pre [%s]", self.name)
        FuncCall.pcall(executor, func_prefix + "topic_pre", self)
        tracer.debug("Calling sub [%s]", self.name)
        for tag in self.__tags:
            rtag = tag.get_tag()
            if rtag == "Name":
                FuncCall.pcall(executor, func_prefix + "topic_name",
                               tag.get_content())
                continue
            if rtag == "SubTopic":
                subtopic = self.__digraph.find(tag.get_content())
                assert subtopic is not None
                FuncCall.pcall(executor, func_prefix + "topic_sub_pre",
                               subtopic)
                subtopic.execute(executor, func_prefix)
                FuncCall.pcall(executor, func_prefix + "topic_sub_post",
                               subtopic)
                continue
            if rtag == "IncludeRequirements":
                self.__requirements.execute(executor, func_prefix)
                continue
            if rtag == "Text":
                FuncCall.pcall(executor, func_prefix + "topic_text",
                               tag.get_content())
                continue

            raise RMTException(114, "Unknown tag in topic [%s]" % rtag,
                               self.name)

        tracer.debug("Calling post [%s]", self.name)
        FuncCall.pcall(executor, func_prefix + "topic_post", self)
        tracer.debug("Finished [%s]", self.name)
예제 #16
0
파일: Topic.py 프로젝트: isaacde/rmtoo
    def execute(self, executor, func_prefix):
        """Execute the parts which are needed for TopicsContinuum."""
        tracer.debug("Calling pre [%s]." % self.get_name())
        FuncCall.pcall(executor, func_prefix + "topic_pre", self)
        tracer.debug("Calling sub [%s]." % self.get_name())
        for tag in self.__tags:
            rtag = tag.get_tag()
            if rtag == "Name":
                FuncCall.pcall(executor, func_prefix + "topic_name", tag.get_content())
                continue
            if rtag == "SubTopic":
                subtopic = self.__topicset.find(tag.get_content())
                assert subtopic != None
                FuncCall.pcall(executor, func_prefix + "topic_sub_pre", subtopic)
                subtopic.execute(executor, func_prefix)
                FuncCall.pcall(executor, func_prefix + "topic_sub_post", subtopic)
                continue
            if rtag == "IncludeRequirements":
                self.__requirements.execute(executor, func_prefix)
                continue
            if rtag == "Text":
                FuncCall.pcall(executor, func_prefix + "topic_text", tag.get_content())
                continue

            raise RMTException(114, "Unknown tag in topic [%s]" % rtag, self.get_name())

        tracer.debug("Calling post [%s]." % self.get_name())
        FuncCall.pcall(executor, func_prefix + "topic_post", self)
        tracer.debug("Finished [%s]." % self.get_name())