def index(self): return jsonify([s.name for s in Service.select()])
def to_json(self,d): s = jsonify(sqlobject_to_strings(d)) return deunicodify(s)