def output_latex_topic_set(self, topic_set, ce3set): fd = file(self.filename, "w") # The TopicSet itself needs no output. self.output_latex_topic(fd, topic_set.get_master(), ce3set) constraints = Constraints.collect(topic_set) self.output_latex_constraints(fd, topic_set, constraints) fd.close()
def topic_set_post(self, topic_set): '''Print out the constraints and clean up file.''' tracer.debug("Called; output constraints.") assert topic_set is not None constraints = Constraints.collect(topic_set) self.__output_latex_constraints(constraints) testcases = collect(topic_set) self.__output_latex_testcases(testcases) tracer.debug("Clean up file.") self.__fd.close() tracer.debug("Finished.")
def topic_set_post(self, topic_set): """Print out the constraints and clean up file.""" tracer.debug("Called; output constraints.") if topic_set == None: assert False constraints = Constraints.collect(topic_set) self.__output_latex_constraints(constraints) testcases = TestCases.collect(topic_set) self.__output_latex_testcases(testcases) tracer.debug("Clean up file.") self.__fd.close() tracer.debug("Finished.")
def set_default_values(cfg): '''Calls the appropriate functions to set the default configuration values.''' Constraints.set_default_values(cfg)