Exemplo n.º 1
0
def showHome(wfile, env):
    wfile.write(
"""Content-type: text/html\r
Cache-control: no-cache\r
\r
"""
)
    numIndexed, numQueued = qmsg_processor.getQueueStatus()
    d = datetime.datetime.now()

    from minds import app_httpserver
    app_httpserver.forwardTmpl(wfile, env, 'config.html',
        configTmpl,
        numIndexed, numQueued,
        str(d))
Exemplo n.º 2
0
def doGET(wfile, req, qform):
    numIndexed, archive_date, numQueued = qmsg_processor.getQueueStatus()
    renderer = HistoryRenderer(wfile)
    renderer.setLayoutParam('MindRetrieve - History')
    renderer.output(qform, numIndexed, archive_date, numQueued, None, qform.query, '', [])