Project

General

Profile

Anomalie #7888

Changement du répertoire des dictionnaires non implémenté dans get_config

Added by Joël Cuissinat over 9 years ago. Updated over 9 years ago.

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

100%

Estimated time:
1.00 h
Spent time:
Distribution:
EOLE 2.4

Description

dans eolegenconfig/lib.py (get_config) la variable force_dirs est prévue mais le code est commenté... notamment à cause de #7885 !


Related issues

Related to creole - Evolution #7887: Ajouter des tests unitaires pour valider certaines manipulations appliquées aux variables Creole Fermé

Associated revisions

Revision 5d5f5357 (diff)
Added by Joël Cuissinat over 9 years ago

Possibilité de changer le répertoire des dictionnaires

  • src/eolegenconfig/lib.py (get_config) :
    • prise en compte du paramètre "force_dirs"
    • ajout de la docstring

Fixes: #7888 @45m
Ref: #7886 @10m

History

#1 Updated by Joël Cuissinat over 9 years ago

  • Status changed from Accepté to Résolu
  • % Done changed from 0 to 100

#2 Updated by Joël Cuissinat over 9 years ago

  • Status changed from Résolu to Fermé
root@amon:~# mkdir /root/dicos
root@amon:~# cp /usr/share/eole/creole/dicos/00_common.xml dicos/
root@amon:~# touch /root/toto.eol 
root@amon:~# python
>>> from eolegenconfig import lib
>>> id_ = 'test1'
>>> config = lib.get_config(id_, force_dirs="/root/dicos", force_configfile="/root/toto.eol")
>>> lib.get_categories('test1')
[{'mode': 'basic', 'icon': 'wrench', 'help': u'Param\xe8tres de base du serveur', 'id': 'general',
'description': u'G\xe9n\xe9ral'}]

Also available in: Atom PDF