def to_json(self,d): s = jsonify(sqlobject_to_strings(d)) return deunicodify(s)
def to_xml(self,d): s = """<?xml version="1.0"?><results>""" + xmlify(sqlobject_to_strings(d)) + "</results>" return deunicodify(s)