Example #1
0
 def test_qpy_list_append():
     b = []
     w = b.append
     table = ctx['table']
     w(xml(u'<table>\n'))
     for row in table:
         w(xml(u'<tr>\n'))
         for key, value in row.items():
             w(xml(u'<td>'))
             w(xml_quote(key))
             w(xml(u'</td><td>'))
             w(value)
             w(xml(u'</td>\n'))
         w(xml(u'</tr>\n'))
     w(xml(u'</table>'))
     return join_xml(b)
Example #2
0
 def test_qpy_list_append():
     b = []
     w = b.append
     table = ctx['table']
     w(xml(u'<table>\n'))
     for row in table:
         w(xml(u'<tr>\n'))
         for key, value in row.items():
             w(xml(u'<td>'))
             w(xml_quote(key))
             w(xml(u'</td><td>'))
             w(value)
             w(xml(u'</td>\n'))
         w(xml(u'</tr>\n'))
     w(xml(u'</table>'))
     return join_xml(b)
Example #3
0
 def test_qpy_list_append() -> str:
     b: typing.List[str] = []
     w = b.append
     table = ctx["table"]
     w(xml("<table>\n"))
     for row in table:
         w(xml("<tr>\n"))
         for key, value in row.items():
             w(xml("<td>"))
             w(xml_quote(key))
             w(xml("</td><td>"))
             w(str(value))
             w(xml("</td>\n"))
         w(xml("</tr>\n"))
     w(xml("</table>"))
     return join_xml(b)