def xml_catalog(): xml = dict2xml(vh.serialize_catalog(), wrap="Catalog") response = make_response(xml) response.headers['Content-Type'] = 'application/xml' return response
def json_catalog(): return jsonify(vh.serialize_catalog())