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.")
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.")
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)
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")
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")
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)
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.")
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.")
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.")
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())
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)
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())