forked from crunk/distribusi-verse
crunk
5 months ago
3 changed files with 17 additions and 0 deletions
@ -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 |
@ -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")) |
@ -0,0 +1,3 @@ |
|||
{% extends "base/base.html" %} |
|||
{% block main %} |
|||
{% endblock %} |
Loading…
Reference in new issue