Project

General

Profile

Evolution #7910

Ajouter une option à CreoleLoader pour désactiver la prise en compte des auto_store/auto_freeze

Added by Bruno Boiget about 9 years ago. Updated about 9 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
04/18/2014
% Done:

100%

Estimated time:
0.50 h
Spent time:
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

Related to zephir-parc - Tâche #7911: prise en compte de l'option no_auto_store de CreoleLoader dans gen_config Zéphir Fermé 07/04/2014

Associated revisions

Revision c97b43e9 (diff)
Added by Bruno Boiget about 9 years ago

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

#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é

Also available in: Atom PDF