예제 #1
0
파일: controllers.py 프로젝트: ccnmtl/tasty
 def index(self):
     return jsonify([s.name for s in Service.select()])
예제 #2
0
파일: controllers.py 프로젝트: ccnmtl/tasty
 def to_json(self,d):
     s = jsonify(sqlobject_to_strings(d))
     return deunicodify(s)