Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)