Exemplo n.º 1
0
 def write_table(self, table):
     html = str(table.toxml()) # Fixme : str() workaround for 'Data must not be unicode'
     self.transport.write(util.format_10_digit_number(len(html) + 1))
     self.transport.write(html)
     self.transport.write('\n')
Exemplo n.º 2
0
 def write_number(self, number):
     self.transport.write(util.format_10_digit_number(number))
Exemplo n.º 3
0
 def on_comment(self, node):
     html = str(node.toxml())
     self.transport.write(util.format_10_digit_number(len(html) + 1))
     self.transport.write(html)
     self.transport.write('\n')