Project

General

Profile

Anomalie #8020

auto_save ne fonctionne pas avec les multi

Added by Emmanuel GARETTE almost 7 years ago. Updated almost 7 years ago.

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

100%

Spent time:
Distribution:
EOLE 2.4

Description

Les auto_save ne fonctionnent pas sur les multis

2014-04-18 16:35:15,218: eolegenconfig - serveur_maj is already a Multi 
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/views.py", line 112, in tags
    return make_json_response(lib.get_tags(lib.get_id(), category_name))
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/lib.py", line 536, in get_tags
    for name, value in getattr(config.creole, category_name).iter_all():
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 110, in iter_all
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/config.py", line 264, in getattr
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 171, in getitem
    force_properties, validate_properties)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 245, in _getitem
    force_permissive=force_permissive)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 267, in setitem
    value = Multi(value, self.context, opt, path, setitem=True)
  File "/usr/lib/python2.7/dist-packages/tiramisu/value.py", line 459, in __init__
    raise ValueError(_('{0} is already a Multi ').format(opt._name))
ValueError: serveur_maj is already a Multi 

Related issues

Related to creole - Evolution #7515: ajouter un attribut auto_save aux variables creole Fermé 03/21/2014

Associated revisions

Revision b5bb05da (diff)
Added by Joël Cuissinat almost 7 years ago

Test unitaire sur "auto_save"

Ref #8020
Ref #7887 @45m

History

#1 Updated by Emmanuel GARETTE almost 7 years ago

  • Assigned To set to Emmanuel GARETTE

Corrigé sur la dernière version de tiramisu.

#2 Updated by Joël Cuissinat almost 7 years ago

  • Project changed from creole to Tiramisu
  • Due date set to 05/02/2014
  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

Commit tiramisu : ff3f54dd821

#3 Updated by Joël Cuissinat almost 7 years ago

  • Status changed from Résolu to Fermé

OK avec le paquet python-tiramisu (1.0~2.20-1) et la ligne :

<variable name='toto' multi='True' auto_save='True'/>

Also available in: Atom PDF