示例#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
 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())