Пример #1
0
Файл: app.py Проект: akn/pi
def s():
    q = request.args.get('query', '')   #quoted query
    model_list= [Document, Process]
    xml= search.service_search_xmlresponse(model_list, q)
    return Response(response=xml, mimetype="application/xml")
Пример #2
0
Файл: app.py Проект: akn/pi
def search_method():
    q = request.args.get('query', '')   #quoted query
    model_list= [Person, Email, Fax, Phone]
    xml= search.service_search_xmlresponse(model_list, q)
    # TODO: search
    return Response(response=xml, mimetype="application/xml")
Пример #3
0
Файл: app.py Проект: akn/pi
def search_method():
    q = request.args.get('query', '')   #quoted query
    model_list= [Placemark, PlacemarkType]
    xml= search.service_search_xmlresponse(model_list, q)
    return Response(response=xml, mimetype="application/xml")
Пример #4
0
Файл: app.py Проект: akn/pi
def s():
    q = request.args.get('query', '')   #quoted query
    model_list= [Department, Course, CourseType, Subject]
    xml= search.service_search_xmlresponse(model_list, q)
    return Response(response=xml, mimetype="application/xml")