late nite freaks
This commit is contained in:
parent
3f54cbf72f
commit
18457f9ced
@ -8,10 +8,15 @@ The contribution consisted of setting up distribusi. ruruhuis.nl (distribusi is
|
|||||||
|
|
||||||
This particular work in progress project is an attempt to make distribusi into a webinterface that can be operated remotely without any knowlegde of CLI. Trying to somehow combine the ideas of distribusi with the ideas of a [tildeverse](https://tildeverse.org/) or [Tilde club ](https://tilde.club/), but also be neither of these ideas.
|
This particular work in progress project is an attempt to make distribusi into a webinterface that can be operated remotely without any knowlegde of CLI. Trying to somehow combine the ideas of distribusi with the ideas of a [tildeverse](https://tildeverse.org/) or [Tilde club ](https://tilde.club/), but also be neither of these ideas.
|
||||||
|
|
||||||
This project is made for Autonomous Practices at the WDKA in Rotterdam.
|
This project was made for Autonomous Practices at the WDKA in Rotterdam.
|
||||||
|
|
||||||
|
The second stage of this project might be the archiving part of the [Toolsheds fellowship.](https://nieuweinstituut.nl/en/articles/call-for-fellows-tool-sheds)
|
||||||
|
|
||||||
|
|
||||||
## Work in progress
|
## Work in progress
|
||||||
|
|
||||||
Amazingly helpful testers, currently I am writing some database upgrades and new functionalities, and they don't work, so have some patience with testing the in development material.
|
Currently this repo is transforming the academic based search filters into adjustable
|
||||||
|
small Autonomous space filters.
|
||||||
|
|
||||||
## Start your engines!
|
## Start your engines!
|
||||||
|
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 79
|
line-length = 79
|
||||||
target-version = ['py37', 'py38', 'py39']
|
target-version = ['py311']
|
||||||
include = '\.pyi?$'
|
include = '\.pyi?$'
|
||||||
exclude = '''
|
exclude = '''
|
||||||
/(
|
/(
|
||||||
\.eggs
|
\.eggs
|
||||||
| \.git
|
| \.git
|
||||||
| \.hg
|
| \.hg
|
||||||
| \.mypy_cache
|
| \.mypy_cache
|
||||||
| \.tox
|
| \.tox
|
||||||
| \.venv
|
| \.venv
|
||||||
| _build
|
| _build
|
||||||
| buck-out
|
| buck-out
|
||||||
| build
|
| build
|
||||||
| dist
|
| dist
|
||||||
|
|
||||||
# The following are specific to Black, you probably don't want those.
|
# The following are specific to Black, you probably don't want those.
|
||||||
| blib2to3
|
| blib2to3
|
||||||
| tests/data
|
| tests/data
|
||||||
| profiling
|
| profiling
|
||||||
)/
|
)/
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ Flask-Security==3.0.0
|
|||||||
Flask-Security-Too==4.1.3
|
Flask-Security-Too==4.1.3
|
||||||
Flask-SQLAlchemy==2.5.1
|
Flask-SQLAlchemy==2.5.1
|
||||||
Flask-WTF==1.0.0
|
Flask-WTF==1.0.0
|
||||||
greenlet==1.1.2
|
|
||||||
idna==3.3
|
idna==3.3
|
||||||
itsdangerous==2.0.1
|
itsdangerous==2.0.1
|
||||||
Jinja2==3.0.3
|
Jinja2==3.0.3
|
||||||
|
@ -18,38 +18,43 @@ from wtforms import (
|
|||||||
class UploadForm(FlaskForm):
|
class UploadForm(FlaskForm):
|
||||||
"""File upload class for a new site in distribusi-verse"""
|
"""File upload class for a new site in distribusi-verse"""
|
||||||
|
|
||||||
def distribusiname(form, field):
|
def _distribusiname(form, field):
|
||||||
if field.data.lower() == "new":
|
if field.data.lower() == "new":
|
||||||
raise ValidationError("Name has to be unique and not just new.")
|
raise ValidationError("Name has to be unique and not just new.")
|
||||||
|
|
||||||
sitename = StringField(
|
sitename = StringField(
|
||||||
"Name of your website:",
|
"Name of your archive section:",
|
||||||
validators=[validators.InputRequired(), Length(2, 100), distribusiname],
|
validators=[validators.InputRequired(), Length(2, 100), _distribusiname],
|
||||||
)
|
)
|
||||||
academicyear = SelectField(
|
academicyear = SelectField(
|
||||||
"Academic year:",
|
"Year",
|
||||||
validate_choice=True,
|
validate_choice=True,
|
||||||
coerce=str,
|
coerce=str,
|
||||||
choices=[
|
choices=[
|
||||||
(u'2021-2022', u'2021-2022'),
|
(u'2017', u'2017'),
|
||||||
(u'2022-2023', u'2022-2023'),
|
(u'2018', u'2018'),
|
||||||
(u'2023-2024', u'2023-2024'),
|
(u'2019', u'2019'),
|
||||||
(u'2024-2025', u'2024-2025'),
|
(u'2020', u'2020'),
|
||||||
(u'2020-2021', u'past: 2020-2021'),
|
(u'2021', u'2021'),
|
||||||
|
(u'2022', u'2022'),
|
||||||
|
(u'2023', u'2023'),
|
||||||
|
(u'2024', u'2024'),
|
||||||
|
(u'2025', u'2025'),
|
||||||
],
|
],
|
||||||
option_widget=None,
|
option_widget=None,
|
||||||
validators=[DataRequired()]
|
validators=[DataRequired()]
|
||||||
)
|
)
|
||||||
term = SelectField(
|
term = SelectField(
|
||||||
"Term:",
|
"Category:",
|
||||||
validate_choice=True,
|
validate_choice=True,
|
||||||
coerce=str,
|
coerce=str,
|
||||||
choices=[
|
choices=[
|
||||||
(u'1.2', u'1.2'),
|
(u'event', u'event'),
|
||||||
(u'2.3', u'2.3'),
|
(u'gathering', u'gathering'),
|
||||||
(u'3.1', u'3.1'),
|
(u'work session', u'work session'),
|
||||||
(u'4.1', u'4.1'),
|
(u'workgroup', u'workgroup'),
|
||||||
(u'4.2', u'4.2'),
|
(u'performance', u'performance'),
|
||||||
|
(u'music event', u'music event'),
|
||||||
],
|
],
|
||||||
option_widget=None,
|
option_widget=None,
|
||||||
validators=[DataRequired()]
|
validators=[DataRequired()]
|
||||||
|
Loading…
Reference in New Issue
Block a user