示例#1
0
def xml_catalog():
    xml = dict2xml(vh.serialize_catalog(), wrap="Catalog")
    response = make_response(xml)
    response.headers['Content-Type'] = 'application/xml'
    return response
示例#2
0
文件: views.py 项目: ransomw/udacity
def xml_catalog():
    xml = dict2xml(vh.serialize_catalog(), wrap="Catalog")
    response = make_response(xml)
    response.headers['Content-Type'] = 'application/xml'
    return response
示例#3
0
def json_catalog():
    return jsonify(vh.serialize_catalog())
示例#4
0
文件: views.py 项目: ransomw/udacity
def json_catalog():
    return jsonify(vh.serialize_catalog())