Commit Graph

27 Commits

Author SHA1 Message Date
Darks 3848b3dedd
Add 'update-all' capability to master script 2022-12-18 00:32:14 +01:00
Darks 2089398773
Update to follow Pillow evolution 2022-12-17 22:11:36 +01:00
Lephe c74abf3fcc
post: add a tagging system, with a common base set of tags
Adds the tagging system, with 3 types of tags:
* Calculator models grouped by compatibility classes
* Programming languages
* Game, tools, and course categories

[MIGRATION] This commit contains a new version of the schema.
[BREAKS] This commit breaks existing tag assignments.
[MASTER] Run the 'update-tags' command of master.py.
2022-06-12 18:26:47 +01:00
Lephe f4b9110ce2
master: fix group update 2022-05-26 23:01:02 +01:00
Lephe 38c4f274a0
perf: optimize away more privilege requests
[MIGRATION] This commit contains a new version of the schema.
2022-05-12 20:00:24 +01:00
Louis Gatin 48d2b3333b master.py: added help command 2021-07-23 23:05:24 +02:00
Lephe a6689312cf
master.py: enforce non-antialised upscaling of trophy icons
Either the default changed in PIL, the mode of the source image was
affected, or something else.
2021-07-12 20:11:44 +02:00
Lephe 64a6f270c5
master.py: also update title CSS 2021-07-08 17:52:54 +02:00
Lephe 59236cac70
master.py: update trophies in a lossless fashion (#82) 2021-07-08 17:48:14 +02:00
Lephe b31ed9bec2
master.py: reorganize commands (#82) 2021-07-08 17:47:01 +02:00
Lephe f5f1a445ea
master: update special privilege names for GLaDOS 2021-02-27 10:14:59 +01:00
Lephe 3ee3794818
master: fix groups not fully updating
Fixes c8661ca50.
2021-02-26 18:31:10 +01:00
Lephe c8661ca50f
master: update groups without deleting them 2021-02-20 17:34:56 +01:00
Lephe 75f3a90f20
master.py: update forums with stateful logic
The create-forums function has been replaced with an [update] subcommand
of [forums]. This new function tries its best to keep existing forum
objects, which is especially important once content has been created.

Forums are identified by their URL. Changing the URL means the forum
needs to be recreated. If the URL doesn't changed, metadata is updated
without removing topics and subforums in that forum.

* Improve the update model for forums in master.py
* Fix a typo in the prefix for the tool projects subforum
* Add the admin and assoc boards for permission testing
2020-11-01 10:50:52 +01:00
Darks ee01a4c768
master.py: split generation of trophies and generation of icons
May be used in development environment when database is populated and 
deleting/recreating trophies throws an error because it will broke 
non-null relationships.
2020-10-31 10:15:07 +01:00
Eragon cbdffc1224
Ajout de la possibilité d'activer un compte par la cli.
Une fonction permet de modifier le status de vérification de l'adresse mail de
l'utilisateur spécifié en paramètre.
On peut exploiter la fonction via le script `master.py`
2020-09-17 15:18:38 +02:00
Darks c5e99807e3
fix a typo in many files 2020-08-25 22:57:45 +02:00
Darks 7395835e71
refact: models files are nom uniform (all singular) 2020-08-06 21:19:01 +02:00
Darks 3fb3ee40d2
fix: better PEP8
Flake8 returns less errors. I ignored lots of them though
2020-08-05 22:52:56 +02:00
Lephe 19e4ee2e30
trophies: generate icons dynamically in the master script
DATABASE UPDATE: Run the [create-trophies] command of the master script
to obtain icons.
2020-07-22 11:53:35 +02:00
Darks 1b17234623
trophies: ADD hidden parameter, FIX admin panel 2020-07-20 19:35:05 +02:00
Lephe c4bfef4765
trophies: add descriptions
DATABASE UPDATE: run [flask db upgrade], then use the [create-trophies]
command of the master script to recreate trophies.
2020-07-19 22:27:00 +02:00
Lephe aa75ff09a1
forum: implement forum tree generation
This commit adds a forum tree YAML file (URL-based rather than an
actual tree...) and the 'forums' and 'create-forums' commands for
the master script.

A page /admin/forums is also used to currently display the forum
tree, although this will probably be turned into a full table with
forum descriptions, and a form with edition capabilities.
2019-09-09 08:11:37 +02:00
Darks 2e80a56596
Ajout d'un groupe `nologin` (corrige #22)
Les comptes GLaDOS et PlanèteCasio sont automatiquement ajoutés au 
groupe "No login", qui empêche l'utilisateur de se connecter, et ce même 
si les identifiants sont corrects.
2019-09-03 09:28:07 +02:00
Lephe 4cefe39c36 trophies: automatically remove undeserved trophies
... and other minor edits from the trophies branch.
2019-08-19 17:26:22 +02:00
Darks 1d638689c6
Modifications on trophies and titles #10 (and more)
- remove `title` attribute
- do the migration of db
- add initialization routine in `master.py`
- add default trophies and titles in `data/trophies.yaml`
- add `add_trophy` method in `Member` class
- add `update_trophies` method in `Member` class
- add form in admin panel to give a trophy to a member
- same to remove a trophy
- change `if request.method == "POST"` to `if form.submit.data`
2019-06-11 00:15:23 +02:00
Lephe a3b867bab5 core: introduce a master script and enable proper privilege checks 2019-06-06 13:54:01 -04:00