2019-09-02 21:35:16 +02:00
|
|
|
# This file is a list of forums to create when setting up Planète Casio.
|
|
|
|
#
|
|
|
|
# * Keys are used as URLs paths and for unique identification.
|
review of privileges and forum permissions
* Sorted privileges into categories, similar to the v4.3 style
Added privilege check utilities:
* Forum: is_news(), is_default_accessible() and is_default_postable()
* Member: can_access_forum(), can_post_in_forum(), can_edit_post(),
and can_delete_post()
Unfortunately current_user is not a Guest when logged out, so one
cannot usually write current_user.can_*() without checking for
authentication first, so the checks are still somewhat verbose.
Reviewed forum permissions; the following permission issues have been
fixed (I have tested most but not all of them prior to fixing):
* app/routes/forum/index.py: Users that were not meant to access a
forum could still obtain a listing of the topics
* app/routes/forum/topic.py: Users that were not meant to see topics
could still read them by browsing the URL
* app/routes/forum/topic.py: Authenticated users could post in any
topic, including ones that they should not have access to
* app/routes/posts/edit.py: Users with edit.posts (eg. mods) could edit
and delete messages in forums they can't access (eg. creativecalc)
* app/templates/account/user.html: Users with admin panel access would
see account editing links they can't use (affects developers)
* app/templates/base/navbar/forum.html: The "Forum" tab would list all
forums including ones the user doesn't have access to
* app/templates/forum/index.html: Users would see every single forum,
including ones they can't access
* app/template/widgets/thread.html: Anyone would see Edit/Delete links
on every message, even though most were unusable
Miscellaneous changes:
* app/routes/forum/topic.py: Ordered comments by date as intended,
which I assume worked by chance until now
* Removed the old assets/privs.txt files which is now superseded by the
list implemented in app/data/groups.yaml
This commit changes group and forum information, run master.py with:
@> forums update
@> groups update
2021-02-26 18:29:25 +01:00
|
|
|
# * Prefixes are used to identify privileges for each forum, see groups.yaml
|
|
|
|
# for details.
|
2019-09-02 21:35:16 +02:00
|
|
|
|
|
|
|
/:
|
|
|
|
name: Forum de Planète Casio
|
|
|
|
prefix: root
|
|
|
|
|
|
|
|
# News
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/actus:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Actualités
|
|
|
|
prefix: news
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/actus/projets:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Actualités des projets
|
|
|
|
prefix: projectnews
|
|
|
|
descr: Nouveautés des projets de la communauté.
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/actus/calc:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Actualités des constructeurs de calculatrices
|
|
|
|
prefix: calcnews
|
|
|
|
descr: Nouveautés CASIO, nouveaux modèles de calculatrices, mises à jour du
|
|
|
|
système ou nouveautés d'autres constructeurs.
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/actus/evenements:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Événements organisés par Planète Casio
|
|
|
|
prefix: eventnews
|
|
|
|
descr: Tous les événements organisés par Planète Casio ou la communauté.
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/actus/autres:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Autres nouveautés
|
|
|
|
prefix: othernews
|
|
|
|
descr: Actualités non catégorisées.
|
|
|
|
|
|
|
|
# Help
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/aide:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Aide et questions
|
|
|
|
prefix: help
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/aide/transferts:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Questions sur les tranferts
|
|
|
|
prefix: transferhelp
|
|
|
|
descr: Questions sur le transfert de fichiers et l'installation de programmes
|
|
|
|
sur la calculatrice.
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/aide/calc:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Question sur l'utilisation des calculatrices
|
|
|
|
prefix: calchelp
|
|
|
|
descr: Questions sur l'utilisation des applications de la calculatrice,
|
|
|
|
paramètres, formats de fichiers...
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/aide/prog:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Questions de programmation
|
|
|
|
prefix: proghelp
|
|
|
|
descr: Questions sur le développement et le debuggage de programmes.
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/aide/autres:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Autres questions
|
|
|
|
prefix: otherhelp
|
|
|
|
descr: Questions non catégorisées.
|
|
|
|
|
|
|
|
# Projects
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/projets:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Forum des projets
|
|
|
|
prefix: projects
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/projets/jeux:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Projets de jeux
|
|
|
|
prefix: gameprojects
|
2019-09-08 14:34:51 +02:00
|
|
|
descr: Projets de jeux pour calculatrices, tous langages confondus et tous
|
|
|
|
modèles de calculatrices confondus.
|
2019-09-02 21:35:16 +02:00
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/projets/applis:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Projets d'applications, utilitaires, outils pour calculatrice
|
|
|
|
prefix: appprojects
|
2019-09-08 14:34:51 +02:00
|
|
|
descr: Projets d'applications (hors jeux) pour calculatrice, tous langages et
|
|
|
|
modèles confondus.
|
2019-09-02 21:35:16 +02:00
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
/projets/outils:
|
2019-09-02 21:35:16 +02:00
|
|
|
name: Projets pour d'autres plateformes
|
2020-11-01 10:50:52 +01:00
|
|
|
prefix: toolprojects
|
2019-09-02 21:35:16 +02:00
|
|
|
descr: Tous les projets tournant sur ordinateur, téléphone, ou toute autre
|
|
|
|
plateforme que la calculatrice.
|
|
|
|
|
2019-12-16 23:57:50 +01:00
|
|
|
# Community
|
|
|
|
|
|
|
|
/communaute:
|
|
|
|
name: Vie communautaire
|
|
|
|
prefix: community
|
|
|
|
descr: Projets pour Planète Casio, remarques sur le fonctionnement du site et
|
|
|
|
de sa communauté.
|
|
|
|
|
2019-09-02 21:35:16 +02:00
|
|
|
# Discussion
|
|
|
|
|
|
|
|
/discussion:
|
|
|
|
name: Discussion
|
|
|
|
prefix: discussion
|
|
|
|
descr: Sujets hors-sujet et discussion libre.
|
2020-11-01 10:50:52 +01:00
|
|
|
|
review of privileges and forum permissions
* Sorted privileges into categories, similar to the v4.3 style
Added privilege check utilities:
* Forum: is_news(), is_default_accessible() and is_default_postable()
* Member: can_access_forum(), can_post_in_forum(), can_edit_post(),
and can_delete_post()
Unfortunately current_user is not a Guest when logged out, so one
cannot usually write current_user.can_*() without checking for
authentication first, so the checks are still somewhat verbose.
Reviewed forum permissions; the following permission issues have been
fixed (I have tested most but not all of them prior to fixing):
* app/routes/forum/index.py: Users that were not meant to access a
forum could still obtain a listing of the topics
* app/routes/forum/topic.py: Users that were not meant to see topics
could still read them by browsing the URL
* app/routes/forum/topic.py: Authenticated users could post in any
topic, including ones that they should not have access to
* app/routes/posts/edit.py: Users with edit.posts (eg. mods) could edit
and delete messages in forums they can't access (eg. creativecalc)
* app/templates/account/user.html: Users with admin panel access would
see account editing links they can't use (affects developers)
* app/templates/base/navbar/forum.html: The "Forum" tab would list all
forums including ones the user doesn't have access to
* app/templates/forum/index.html: Users would see every single forum,
including ones they can't access
* app/template/widgets/thread.html: Anyone would see Edit/Delete links
on every message, even though most were unusable
Miscellaneous changes:
* app/routes/forum/topic.py: Ordered comments by date as intended,
which I assume worked by chance until now
* Removed the old assets/privs.txt files which is now superseded by the
list implemented in app/data/groups.yaml
This commit changes group and forum information, run master.py with:
@> forums update
@> groups update
2021-02-26 18:29:25 +01:00
|
|
|
# Limited-access boards
|
|
|
|
# Prefixes "admin" and "creativecalc" are reserved for this and require special
|
2020-11-01 10:50:52 +01:00
|
|
|
# privileges to list, read and edit topics and messages.
|
|
|
|
|
|
|
|
/admin:
|
|
|
|
name: Administration
|
|
|
|
prefix: admin
|
|
|
|
descr: Discussions sur l'administration du site, accessible uniquement aux
|
|
|
|
membres de l'équipe.
|
|
|
|
|
|
|
|
/creativecalc:
|
|
|
|
name: CreativeCalc
|
review of privileges and forum permissions
* Sorted privileges into categories, similar to the v4.3 style
Added privilege check utilities:
* Forum: is_news(), is_default_accessible() and is_default_postable()
* Member: can_access_forum(), can_post_in_forum(), can_edit_post(),
and can_delete_post()
Unfortunately current_user is not a Guest when logged out, so one
cannot usually write current_user.can_*() without checking for
authentication first, so the checks are still somewhat verbose.
Reviewed forum permissions; the following permission issues have been
fixed (I have tested most but not all of them prior to fixing):
* app/routes/forum/index.py: Users that were not meant to access a
forum could still obtain a listing of the topics
* app/routes/forum/topic.py: Users that were not meant to see topics
could still read them by browsing the URL
* app/routes/forum/topic.py: Authenticated users could post in any
topic, including ones that they should not have access to
* app/routes/posts/edit.py: Users with edit.posts (eg. mods) could edit
and delete messages in forums they can't access (eg. creativecalc)
* app/templates/account/user.html: Users with admin panel access would
see account editing links they can't use (affects developers)
* app/templates/base/navbar/forum.html: The "Forum" tab would list all
forums including ones the user doesn't have access to
* app/templates/forum/index.html: Users would see every single forum,
including ones they can't access
* app/template/widgets/thread.html: Anyone would see Edit/Delete links
on every message, even though most were unusable
Miscellaneous changes:
* app/routes/forum/topic.py: Ordered comments by date as intended,
which I assume worked by chance until now
* Removed the old assets/privs.txt files which is now superseded by the
list implemented in app/data/groups.yaml
This commit changes group and forum information, run master.py with:
@> forums update
@> groups update
2021-02-26 18:29:25 +01:00
|
|
|
prefix: creativecalc
|
2020-11-01 10:50:52 +01:00
|
|
|
descr: Forum privé de l'association CreativeCalc, réservé aux membres.
|