Evolution #7910
Ajouter une option à CreoleLoader pour désactiver la prise en compte des auto_store/auto_freeze
Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Target version:
Distribution:
EOLE 2.4
Description
Sur Zéphir, on ne veut pas que les variables de type auto_store / auto_save soient enregistrées automatiquement dans le cas de saisie de valeurs par défaut d'un module/variante
Related issues
Associated revisions
ajout de l'option no_auto_store à CreoleLoader
Fixes #7910 @30m
History
#1 Updated by Bruno Boiget about 9 years ago
- Status changed from Nouveau to Résolu
- % Done changed from 0 to 100
Appliqué par commit c97b43e908111a4563c7b5970bffa0c69c0fb8e5.
#2 Updated by Emmanuel GARETTE about 9 years ago
OK :
root@scribe:~# grep -e "bacula_dir_password" /usr/share/eole/creole/dicos/* /usr/share/eole/creole/dicos/20_bacula.xml: <variable name='bacula_dir_password' type='string' description='Mot de passe du directeur' mode="expert" auto_save='True'/> root@scribe:~# grep "numero_etab" /usr/share/eole/creole/dicos/* /usr/share/eole/creole/dicos/00_common.xml: <variable name='numero_etab' type='string' description="Identifiant de l'établissement (exemple UAI)" auto_freeze='True' mandatory='True'/>
Sans l'option :
root@scribe:~# python Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from creole.var_loader import CreoleVarLoader >>> from creole.config import eoledirs >>> >>> loader = CreoleVarLoader() >>> loader.read_dir(eoledirs, 'creole') >>> c = loader.get_config() >>> c.cfgimpl_get_description().creole.general.numero_etab._properties ('mandatory', 'basic', 'auto_freeze', 'basic') >>> c.cfgimpl_get_description().creole.directeur_bacula.bacula_dir_password._properties ('force_store_value', 'expert')
Avec l'option :
root@scribe:~# python Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from creole.var_loader import CreoleVarLoader >>> from creole.config import eoledirs >>> >>> loader = CreoleVarLoader(True) >>> loader.read_dir(eoledirs, 'creole') >>> c = loader.get_config() >>> c.cfgimpl_get_description().creole.general.numero_etab._properties ('mandatory', 'basic', 'basic') >>> c.cfgimpl_get_description().creole.directeur_bacula.bacula_dir_password._properties ('expert',) >>>
#3 Updated by Emmanuel GARETTE about 9 years ago
- Status changed from Résolu to Fermé