예제 #1
0
파일: controllers.py 프로젝트: ccnmtl/tasty
 def to_json(self,d):
     s = jsonify(sqlobject_to_strings(d))
     return deunicodify(s)
예제 #2
0
파일: controllers.py 프로젝트: ccnmtl/tasty
 def to_xml(self,d):
     s = """<?xml version="1.0"?><results>""" + xmlify(sqlobject_to_strings(d)) + "</results>"
     return deunicodify(s)
예제 #3
0
파일: controllers.py 프로젝트: ccnmtl/tasty
 def to_html(self,d):
     return "<html><head><title>tasty</title><body>" + htmlify(sqlobject_to_strings(d)) + "</body>"
예제 #4
0
파일: test_model.py 프로젝트: ccnmtl/tasty
 def test_sqlobject_to_strings(self):
     assert sqlobject_to_strings(self.service)