def language_box(self, name, node): if name == "<SQL>": self.buf.append("gen_exec(\"\"\"%s\"\"\")" % _escape(SQL().pp(node))) elif name == "<HTML>": self.buf.append(Nested_HTML().pp(node)) else: helper.bad_node(name)
def language_box(self, name, node): self.flush_html() if name == "<Python + HTML + SQL>": self.buf.append(Python().pp(node)) self.buf.append("\n") else: helper.bad_node(name)
def language_box(self, name, node): self.flush_html() if name == "<Python + HTML + SQL>": self.buf.append(Python().pp(node)) self.buf.append("\n") elif name == "<Image>": self.buf.append(Image().pp(node)) else: helper.bad_node(name)