Projet

Général

Profil

Tâche #15499

Mis à jour par Joël Cuissinat il y a environ 8 ans

Sur Eolebase 2.6 :
<pre>
./mount.eole-ci-tests
cp /mnt/eole-ci-tests/configuration/aca.eolebase/default-2.5.2/etc/eole/config.eol /tmp/
gen_config
</pre>
Fichier -> Importer -> /tmp/config.eol
<pre>
2016-03-16 11:02:41,559: eolegenconfig - owner must be a string for creole.general.numero_etab
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/eolegenconfig/webapi.py", line 330, in upload_config
lib.load_config(id_, config_file, force_instanciate=False)
File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 281, in load_config
force_instanciate=force_instanciate)
File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 176, in get_config
force_instanciate=force_instanciate)
File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 417, in creole_loader
force_instanciate=force_instanciate)
File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 283, in load_config_eol
force_instanciate=force_instanciate)
File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 602, in config_load_values
force_load_owner=force_load_owner)
File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 556, in config_load_store
raise Exception(_('owner must be a string for {}').format(path))
Exception: owner must be a string for creole.general.numero_etab
</pre>

La ligne en cause dans loader.py est :
<pre>
if not isinstance(owner, dict):
</pre>

Le contournement suivant semble fonctionner :
<pre>
if not (isinstance(owner, unicode) unicode)) or isinstance(owner, str)):
</pre>

Retour