major refactoring

* move all scripts not intended to be called directly to helpers/ dir
* introduce sequencer.py as replacement for various scripts
* introduce --save option to generate.py
* other smaller changes/bugfixes
This commit is contained in:
2022-03-09 15:52:02 +01:00
parent da116d7b01
commit 151f11d90b
18 changed files with 164 additions and 125 deletions

View File

@@ -14,6 +14,25 @@ mm_url: "@import(personal.conf:mattermost_url)"
invite_mail: fsr-einladung@fsmi.uni-karlsruhe.de
invite_subject: 'Einladung zum Fachschaftsrat am {{date|weekday}}, dem {{date|date}}'
presentation_save_path: data/
protocol_save_path: protokolle/
sequencer:
invite:
- clean_data
- read_db
- read_topmails
- generate --invite --send-mail
presentation:
- read_db
- generate --presentation --save
- compile_presentation
protocol:
- clean_data
- read_db
- read_topmails
- generate --protocol --save
pre_tops:
- title: Begrüßung
protostub: Der FSR wird begrüßt.
@@ -26,14 +45,14 @@ pre_tops:
{% endfor %}'
- title: Unveröffentlichte Protokolle
file: "data/uvproto.txt"
command: ./get_uvproto.sh
command: helpers/get_uvproto.sh
body: "* FSR-Protokoll vom {{last_date|date}}"
- title: Berichte
protostub:
post_tops:
- title: Unbeantwortete E-Mails
command: ./read_ubmails.py
command: helpers/read_ubmails.py
protostub: '<intern>
{{top.body}}
@@ -58,8 +77,8 @@ post_tops:
{{"}}"}}'
- title: Termine
file: "data/termine.txt"
command: "./list_termine.sh" # if khal is setup correctly, uncomment this to read events from there
proto_command: "./list_termine_proto.sh"
command: "helpers/list_termine.sh" # if khal is setup correctly, uncomment this to read events from there
proto_command: "helpers/list_termine_proto.sh"
protostub: '{|
{{"{{"}}Termin|was=AAAAAAAAAA|wann=XX.YY.{{"}}"}}
@@ -78,6 +97,7 @@ top_mbox_file: data/fsr_tops.mbox
mbox_out: data/invitemail.mbox
top_inbox_maildir: "@import(personal.conf:top_inbox_maildir)"
ubmails_inbox_maildir: "@import(personal.conf:ubmails_inbox_maildir)"
top_list_id: top.fsmi.uni-karlsruhe.de
last_date_file: data/last_date