Project

General

Profile

Tâche #18826

Scénario #18693: Traitement express MEN (4-6)

dicos.add_variante renvoit global name 'BLANK_MD5' is not defined"

Added by Christophe Dezé over 2 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/23/2017
Due date:
% Done:

100%

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

Description

j'ai un petit soucis avec un script
j'essaie d'importer des dicos

for name in glob.glob(src + '/dicos/*.xml'):
    dico = name.split('/')[-1]
    dico_name = dico
    with open(name) as dicoxml:
        b64dico = base64.b64encode(dicoxml.read())
        ret = zephir.dicos.add_dict(11, dico_name, b64dico)
        print dico_name,id_variante, ret
        ret = zephir.dicos.add_variante(id_variante, 'local', dico_name)
        print ret
    dico_files = {}

ca me renvoit ca 07_bts_tertiaire_cfa_RC.xml 318 [1, True]

[0, "global name 'BLANK_MD5' is not defined"]

upload2zephir.py View (2 KB) Christophe Dezé, 02/08/2017 03:11 PM

Associated revisions

Revision bda35248 (diff)
Added by Bruno Boiget over 2 years ago

Corrections (pylint) sur les librairies backend / web

ref #18826 @1h30m

History

#1 Updated by Bruno Boiget over 2 years ago

  • Tracker changed from Demande to Tâche
  • Estimated time set to 2.00 h
  • Parent task set to #18693
  • Remaining (hours) set to 2.0

vu avec Christophe sur IRC. J'en ai profité pour passer pylint sur les fichiers du frontend / backend

#2 Updated by Bruno Boiget over 2 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Bruno Boiget

#3 Updated by Scrum Master over 2 years ago

  • Project changed from zephir-parc to Distribution EOLE
  • Status changed from En cours to Résolu

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

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

Paquets ajoutés à la mise à jour candidate en cours : http://eole.orion.education.fr/listes/arc/zephir/2017-02/msg00000.html

#5 Updated by Christophe Dezé over 2 years ago

upload(login, password, id_variante, src)

#6 Updated by Daniel Dehennin over 2 years ago

Je n’arrive pas à utiliser le script fourni pour tester.

Christophe: as-tu eu la possibilité de tester la modification ?

#7 Updated by Christophe Dezé over 2 years ago

la modification semble corriger le problème
merci

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

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.15 to 0.0

Validé par l'utilisateur ;)

Also available in: Atom PDF