Projet

Général

Profil

Bug #1361

Possibilité de désactiver certaines options

Ajouté par Frédéric Péters il y a environ 12 ans. Mis à jour il y a plus de 8 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
19 avril 2012
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Planning:

Description

(le coffre-fort)


Fichiers

wcs.site-options.diff (2,01 ko) wcs.site-options.diff Frédéric Péters, 19 avril 2012 12:09

Historique

#1

Mis à jour par Frédéric Péters il y a environ 12 ans

L'idée est ici de permettre un site-options.cfg dans le $appdir, avec une gueule genre :

[options]
strongbox = true
drupal = false
ezldap = false

et d'avoir ensuite dans le code d'auquotidien des modifications genre :

-        '<li><a href="strongbox">%s</a></li>' % _('Strongbox Support')
+        if get_publisher().has_site_option('strongbox'):
+            '<li><a href="strongbox">%s</a></li>' % _('Strongbox Support')
...
     def strongbox [html] (self):
+        if not get_publisher().has_site_option('strongbox'):
+            raise errors.TraversalError()
#2

Mis à jour par Frédéric Péters il y a environ 12 ans

  • Statut changé de Solution déployée à Résolu (à déployer)

Voilà, c'est poussé.

Côté Meyzieux, il faudra désactiver le coffre-fort manuellement, avant que cette mise à jour ne nous bloque l'accès.

#3

Mis à jour par Frédéric Péters il y a presque 11 ans

  • % réalisé changé de 0 à 100
#4

Mis à jour par Frédéric Péters il y a presque 11 ans

  • Statut changé de Résolu (à déployer) à Fermé
#5

Mis à jour par Thomas Noël il y a plus de 8 ans

  • Version cible Au-quotidien 2012.2 supprimé

Formats disponibles : Atom PDF