start of search
This commit is contained in:
parent
4425888116
commit
681c34e05e
6
verse/search/forms/searchform.py
Normal file
6
verse/search/forms/searchform.py
Normal file
@ -0,0 +1,6 @@
|
||||
"""SearchForm to search files and distribusis in the distribusi archive"""
|
||||
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import StringField, SubmitField, validators
|
||||
from wtforms.validators import Length
|
||||
from wtforms.widgets import TextArea
|
8
verse/search/search.py
Normal file
8
verse/search/search.py
Normal file
@ -0,0 +1,8 @@
|
||||
import os
|
||||
|
||||
from whoosh.fields import *
|
||||
from whoosh.index import open_dir
|
||||
from whoosh.qparser import QueryParser
|
||||
|
||||
SCRIPT_DIR = os.path.dirname(__file__)
|
||||
DATA_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "../data"))
|
3
verse/search/templates/search/search.html
Normal file
3
verse/search/templates/search/search.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% extends "base/base.html" %}
|
||||
{% block main %}
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user