Beispiel #1
0
 def to_xml(self,d):
     s = """<?xml version="1.0"?><results>""" + xmlify(sqlobject_to_strings(d)) + "</results>"
     return deunicodify(s)
Beispiel #2
0
 def test_xmlify(self):
     assert xmlify(('a','b')) == '<a>b</a>'
     assert xmlify(1) == '1'