Bug #6781
Exception: Import of workflows module must be absolute (from wcs/fields.py)
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
19 mars 2015
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
En voulant éditer un utilisateur sur cg14.dev.entrouvert.org (rhel6/python2.6, wcs 1.12.12) , j'ai cette trace :
Exception: type = '<type 'exceptions.ImportError'>', value = 'Import of workflows module must be absolute (import wcs.workflows)' Stack trace (most recent call first): File "/usr/lib/python2.6/site-packages/wcs/workflows.py", line 40, in <module> 38 39 if not __name__.startswith('wcs.') and not __name__ == "__main__": > 40 raise ImportError('Import of workflows module must be absolute (import wcs.workflows)') 41 42 def lax_int(s): locals: is_prefilled = None DNS = None random = None datetime = None (...) DateTimeWidget = None File "/usr/lib/python2.6/site-packages/wcs/fields.py", line 448, in add_to_form 446 label = self.label 447 > 448 from workflows import template_on_string 449 label = template_on_string(label) 450 locals: extra_css_class = '' self = <fields.CommentField object at 0x3771050> form = <qommon.form.Form object at 0x3793a10> value = None label = '<div><a href="#" title="Conditions g\xc3\xa9n\xc3\xa9rales d\'utilisation" target="_blank">Conditions g\xc3\xa9n\xc3\xa9rales d\'utilisation au format pdf (200 ko)</a></div>'
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 9 ans
- Fichier 0002-tests-add-testing-of-users-edit-page-after-custom-fi.patch 0002-tests-add-testing-of-users-edit-page-after-custom-fi.patch ajouté
- Fichier 0001-misc-fix-import-of-worklows-module-it-has-to-be-abso.patch 0001-misc-fix-import-of-worklows-module-it-has-to-be-abso.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a environ 9 ans
Je vais tester ça.
En parallèle je note un autre "from workflows import ..." dans wcs/admin/settings.py, ligne 1036.
Mis à jour par Frédéric Péters il y a environ 9 ans
Celui dans settings.py attrape le module admin/workflows.py, ce qui ne pose pas de soucis.
Mis à jour par Frédéric Péters il y a environ 9 ans
Commits poussés.
commit 124a42b73cc06d7c4224f0e48dc6bd1c28f2e0fe Author: Frédéric Péters <fpeters@entrouvert.com> Date: Thu Mar 19 12:06:13 2015 +0100 tests: add testing of users edit page after custom fields are set commit 1e00f571e22d9d7dca94d24987c66af3a20a132f Author: Frédéric Péters <fpeters@entrouvert.com> Date: Thu Mar 19 12:05:32 2015 +0100 misc: fix import of worklows module, it *has* to be absolute (#6781)
misc: fix import of worklows module, it has to be absolute (#6781)