Ejemplo n.º 1
0
 def to_json(self,d):
     s = jsonify(sqlobject_to_strings(d))
     return deunicodify(s)
Ejemplo n.º 2
0
 def to_xml(self,d):
     s = """<?xml version="1.0"?><results>""" + xmlify(sqlobject_to_strings(d)) + "</results>"
     return deunicodify(s)
Ejemplo n.º 3
0
 def to_html(self,d):
     return "<html><head><title>tasty</title><body>" + htmlify(sqlobject_to_strings(d)) + "</body>"
Ejemplo n.º 4
0
 def test_sqlobject_to_strings(self):
     assert sqlobject_to_strings(self.service)