Project

General

Profile

Tâche #4636

Scénario #31492: Traitement express MEN (02-04)

Multi-étab : preferences.py nécessite des fonctions fournies par l'EAD

Added by Joël Cuissinat over 8 years ago. Updated 7 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/03/2013
Due date:
% Done:

100%

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

Description

root@amonecole:~# importation_scribe 
Traceback (most recent call last):
  File "/usr/bin/importation_scribe", line 56, in <module>
    from scribe.importation import preferences, writer, config
  File "/usr/lib/pymodules/python2.6/scribe/importation/preferences.py", line 15, in <module>
    from ead2.backend.actions.scribe.tool.etablissements import get_etabs
ImportError: No module named ead2.backend.actions.scribe.tool.etablissements

Cette librairie devrait être fournie par scribe-backend

Related issues

Related to scribe-backend - Anomalie #4637: Multi-étab : typo dans preferences.py Fermé 01/03/2013

Associated revisions

Revision 2e9e3399 (diff)
Added by Joël Cuissinat over 8 years ago

  • preferences.py : fix temporaire pour préférences multi-étab

Ref #4636 @10m

Revision e7212f47 (diff)
Added by Joël Cuissinat over 8 years ago

  • preferences.py : fix préférences multi-étab enseignants

Fixes #4636 @25m

Revision a4176f94 (diff)
Added by Matthieu Lamalle 10 months ago

move get_etabs to scribe backend

Revision b42b2b57 (diff)
Added by Matthieu Lamalle 10 months ago

implement get_etabs function

Revision 28889752 (diff)
Added by Joël Cuissinat 8 months ago

get_etabs function is now in scribe-backend

Ref: #4636

Revision 4bbb3db9 (diff)
Added by Joël Cuissinat 8 months ago

get_etabs function is now in scribe-backend

Ref: #4636

History

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

Le hack introduit dans scribe-backend:2e9e3399 sera supprimé lors de la résolution de cette demande.

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

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

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

  • Status changed from Résolu to Nouveau
  • % Done changed from 100 to 10

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

  • Target version deleted (Mises à jour 2.3.8)

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

  • Tracker changed from Evolution to Tâche
  • Assigned To deleted (Emmanuel GARETTE)
  • Estimated time changed from 1.00 h to 2.00 h
  • Parent task set to #13523
  • Remaining (hours) set to 2.0

#6 Updated by Joël Cuissinat 10 months ago

  • Parent task changed from #13523 to #31204

#7 Updated by Joël Cuissinat 9 months ago

Maintenant que la fonction get_etabs est disponible dans scribe.eoleldap, tous les scripts doivent l'utiliser et celle de l'EAD devra être supprimée

~/git/scribe-backend$ rgrep get_etabs 
scribe/eoleldap.py:def get_etabs():
scribe/importation/preferences.py:    from ead2.backend.actions.scribe.tool.etablissements import get_etabs
scribe/importation/preferences.py:    tetabs = get_etabs()
scribe/importation/preferences.py:    tetabs = get_etabs()
scripts/creation_etab_eleves_profs.py:from ead2.backend.actions.scribe.tool.etablissements import get_etabs
scripts/creation_etab_eleves_profs.py:ref_etab, etabs = get_etabs()

#8 Updated by Joël Cuissinat 9 months ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

En fait, celle de l'EAD a bien été supprimée, ça continue de fonctionner grâce à un import d'import !

ead$ rgrep get_etabs 
backend/actions/scribe/tool/getform.py:    from ead2.backend.actions.scribe.tool.etablissements import get_etabs
backend/actions/scribe/tool/getform.py:        etabs = get_etabs()
backend/actions/scribe/tool/getform.py:        etabs = get_etabs()
backend/actions/scribe/tool/getform.py:        etabs = get_etabs()
backend/actions/scribe/tool/etablissements.py:from scribe.eoleldap import Ldap, get_etabs

#9 Updated by Joël Cuissinat 9 months ago

  • Parent task changed from #31204 to #31492

#10 Updated by Joël Cuissinat 8 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 10 to 100
Fait pour EOLE 2.8.1
  • scribe-backend 2.8.1-21
  • eole-ead 2.8.1-10

#11 Updated by Joël Cuissinat 8 months ago

  • Project changed from scribe-backend to Distribution EOLE
  • Description updated (diff)
  • Remaining (hours) changed from 2.0 to 0.0

#12 Updated by Joël Cuissinat 7 months ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF