La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
Go to file
Lephe 8a0ba309e0
forum: restructure models and add topic creation
This changes fixes #25 by restructuring the forum models in a way
compatible with the polymorphic behavior of SQLAlchemy. Incidentally,
the new form turns out to be more appropriate for our use than the
polymorphic one originally used.

The migration for this task is non-trivial because the Thread class was
created with a foreign-key id which thus had no auto-increment or
associated sequence. The most reliable way of getting it back was to
recreate the table because SQLAlchemy ony performs automated sequence
introduction at table creation time. Four separate migration files
perform the whole change.

This commit also adds views and forms to create topics, and the
boilerplate for an advanced markup editor that can be used as a widget.
2019-09-09 08:11:38 +02:00
app forum: restructure models and add topic creation 2019-09-09 08:11:38 +02:00
assets api: remove less used requests 2019-06-05 20:01:12 -04:00
migrations forum: restructure models and add topic creation 2019-09-09 08:11:38 +02:00
scripts Updating .env, run_dev script and REQUIREMENT.md file 2019-02-06 12:10:26 +01:00
.env Updating .env, run_dev script and REQUIREMENT.md file 2019-02-06 12:10:26 +01:00
.gitignore Ajout d'un fichier de configuration local, non tracé par git 2019-09-01 10:35:37 +02:00
Pipfile Small modifications 2019-08-09 23:20:53 +02:00
README.md Quelques changements pour respecter la PEP8 2019-06-05 01:44:38 +02:00
REQUIREMENTS.md Updating requirements file and adding a new one 2019-03-21 22:01:26 +01:00
V5.py Ajout des post/thread/comment/etc. 2019-08-20 17:34:00 +02:00
config.py Ajout du temps maximum d'inactivité pour une connexion 2019-09-07 14:15:31 +02:00
master.py forum: implement forum tree generation 2019-09-09 08:11:37 +02:00
package.txt Django est mort, vive Flask ! 2018-02-23 23:34:06 +01:00
requirements.txt Updating requirements file and adding a new one 2019-03-21 22:01:26 +01:00

README.md

Planète Casio v5

Code de conduite

Don't be an asshole.

Style de code

  • On respecte la PEP8. Je sais c'est relou d'indenter avec des espaces, mais au moins le reste est consistant.
  • La seule exception concerne la longueur des lignes. Merci d'essayer de respecter les 79 colonnes, mais dans certains cas c'est plus crade de revenir à la ligne, donc blc.
  • Je conseille d'utiliser Flake8 qui permet de vérifier les erreurs de syntaxe, de style, etc. en live.