Exemplo n.º 1
0
def search():
    searcher = Searcher(request.args)
    searcher.add_facet('schemata.name', 20)
    pager = Pager(searcher, 'search')
    #list(pager)
    schemata_facet = facet_schema_list(Entity, searcher.get_facet('schemata.name'))
    relschema_facet = facet_schema_list(Relation, searcher.get_facet('relations.schema.name'))
    return render_template('search.html', searcher=searcher,
        pager=pager, schemata_facet=schemata_facet, relschema_facet=relschema_facet)
Exemplo n.º 2
0
def index():
    searcher = Searcher(request.args)
    searcher.add_facet('schemata.name', 20)
    schemata_facet = facet_schema_list(Entity, searcher.get_facet('schemata.name'))
    return render_template('index.html', schemata_facet=schemata_facet)