Commit graph

10 commits

Author SHA1 Message Date
a3eb892df9 Remove duplicate logger initialisation 2023-11-15 20:25:42 +01:00
9bbc86bc53 Extract parts of cron script to modules
Introduce new Python modules:

- lacre.notify -- to send notifications from the cron script;

- lacre.dbschema -- to keep database schema definition as code (SQLAlchemy);

- lacre.repositories -- to define key and identity repositories with high
  level APIs that we can then use elsewhere.

Also:

- rework GnuPG.add_key to return fingerprint so we can use it in the cron
  script;

- rename cron-job's logger name, replacing dash with an underscore as logging
  module doesn't like dashes.
2023-11-12 19:56:45 +01:00
5e108c189a Replace file-based identity store with a dedicated db table 2023-10-29 19:39:08 +01:00
6c114b6dcd Ensure correct logging initialisation in webgate-cron 2023-09-21 20:21:01 +02:00
d39cadb9aa Use proper name in webgate-cron.py logs 2022-10-23 13:51:10 +02:00
ba7978b4a6 Make webgate-cron code more readable 2022-10-22 14:33:20 +02:00
a82d9f96b3 Fix indentation and some warnings 2022-10-19 21:04:25 +02:00
fe49d985ec Adjust cron tests after recent FE decoupling 2022-10-19 20:54:40 +02:00
156b09fd4e
added execute permission to webgate-cron.py 2022-10-19 09:35:52 +02:00
2ebd090d6c
uncoupled web frontend (lacre-webgate) from gpg-lacre; moved cron.py from frontend to backend dir and changed name (webgate-cron.py); 2022-10-12 16:29:09 +02:00
Renamed from gpg-mailgate-web/cron.py (Browse further)