Project

General

Profile

Tâche #23577

Scénario #23377: Traitement express MEN (14-16)

Amon : la popup de confirmation de modification du filtrage Web1 dans l'EAD indique un message erroné

Added by Fabrice Barconnière almost 5 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/06/2018
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

Vu sur Amon 2.6.2 :
Le message indique que le filtrage web3 est modifié alors qu'on modifie le filtrage web1.

Menu EAD :
Filtre web 1 -> Sites -> Mode de filtrage

Associated revisions

Revision cba90a25 (diff)
Added by Joël Cuissinat almost 5 years ago

Correction de la confirmation du mode de filtrage

Ref: #23577

History

#1 Updated by Fabrice Barconnière almost 5 years ago

  • Subject changed from Amon : la popup de confirmation de modification du filtrage Web1 dans l'EAD indique un messag erroné to Amon : la popup de confirmation de modification du filtrage Web1 dans l'EAD indique un message erroné

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

  • Estimated time set to 3.00 h
  • Parent task set to #23377

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

  • Estimated time changed from 3.00 h to 2.00 h
  • Remaining (hours) set to 2.0

dans forms.py

zone_msg = {'pedago':t.get_zone_libelle('2').lower(),
            'admin':t.get_zone_libelle('1').lower(),
            'web3':t.get_zone_libelle('3').lower()}

dans amon_tools.py

def get_zone_libelle(num_zone):
    """ 
        Renvoie le libellé des zones pour l'ead
    """ 
    if num_zone == 1:
        libelle = DANSGUARDIAN_EAD_FILTRE1
    elif num_zone == 2:
        libelle = DANSGUARDIAN_EAD_FILTRE2
    else:
        libelle = DANSGUARDIAN_EAD_FILTRE3
    return(libelle)

Hors :

$ python -c "assert '1' == 1" 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AssertionError

=> supprimer les quotes

NB : il y avait déjà des quotes dans ce fichier quand j'ai ajouté le filtrage web3 en 2.6.1 : https://dev-eole.ac-dijon.fr/projects/ead/repository/revisions/3ac4d0c8d758dd30ebe99c8fe894571fe5798997/diff/backend/actions/amon/forms.py

#4 Updated by Joël Cuissinat almost 5 years ago

  • Status changed from Nouveau to En cours

#5 Updated by Joël Cuissinat almost 5 years ago

  • Assigned To set to Joël Cuissinat

#6 Updated by Joël Cuissinat almost 5 years ago

  • Description updated (diff)

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

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#8 Updated by Joël Cuissinat almost 5 years ago

Corrigé pour EOLE >= 2.6.2

#9 Updated by Scrum Master almost 5 years ago

  • Status changed from En cours to Résolu

#10 Updated by Fabrice Barconnière almost 5 years ago

  • Remaining (hours) changed from 0.25 to 0.0

#11 Updated by Fabrice Barconnière almost 5 years ago

Modification du mode de filtrage 1 et 3 sur etb1.amon 2.6.2. Message OK.

#12 Updated by Fabrice Barconnière almost 5 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF