Pas d'anomalie revelee par le debugger python

This commit is contained in:
Paul Marillonnet 2017-03-02 17:43:35 +01:00
parent ff1101a344
commit 3049aa275c
1 changed files with 33 additions and 0 deletions

33
doc.md
View File

@ -1047,8 +1047,41 @@ Pistes d'identifications du bug:
- template de l'email persistant, dans la base ? à voir, la commande wcsctl.py shell ne fonctionne pas pour l'instant TODO
- inspection pdb ? à voir TODO
- externalisation des templates d'email dans un repertoire extérieur au projet ? TODO
- exploration de la base, des migrations, pour comprendre la façon dont sont stockées les objets de template d'emails
Debugger : le template de l'email semble avoir été enrgistré:
```
(Pdb) EmailsDirectory.emails_dict
{'new_user': {'category': 'Workflow', 'default_body': 'Hello,\n\n[if-any user]\nThis mail is a reminder about the form you just submitted; you can consult it\nwith this link: [url]\n[else]\nThis mail is a reminder about the form you just submitted.\n[end]\n\n[if-any details]\nFor reference, here are the details:\n\n[details]\n[end]\n', 'description': 'Notification of creation to user', 'hint': None, 'enabled': False, 'default_subject': 'New form ([name])'}, 'change_user': {'category': 'Workflow', 'default_body': 'Hello,\n\n[if-any form_status_changed]\nStatus of the form you submitted just changed (from "[before]" to "[after]").\n[end]\n\n[if-any user]\nYou can consult it with this link:\n[url]\n[end]\n\n[if-any form_comment]New comment: [form_comment][end]\n\n[if-any evolution]\n[evolution]\n[end]\n', 'description': 'Notification of change to user', 'hint': 'Available variables: user, url, before, after, evolution', 'enabled': False, 'default_subject': 'Form status change'}, 'new_receiver': {'category': 'Workflow', 'default_body': 'Hello,\n\nA new form has been submitted, you can see it with this link:\n[form_url_backoffice]\n\nIf necessary, please validate the submission by visiting:\nhttp://localhost:8007/ldap/test3/wcs/[form_number]/\n\n[if-any details]\nFor reference, here are the details:\n\n[details]\n[end]\n', 'description': 'Notification of creation to receiver', 'hint': 'Available variables: name, url, details', 'enabled': False, 'default_subject': 'New form ([name])'}}
(Pdb)
```
Pas d'anomalie detectee au debugger Python pour l'instant
Stack trace:
```
(Pdb) w
/home/paul/devel/wcs/wcsctl.py(8)<module>()
-> ctl.run(sys.argv[1:])
/home/paul/devel/wcs/wcs/qommon/ctl.py(159)run()
-> return cmd.run(args, options)
/home/paul/devel/wcs/wcs/qommon/ctl.py(69)run()
-> return self.execute(base_options, sub_options, args)
/home/paul/devel/wcs/wcs/ctl/start.py(69)execute()
-> import publisher
/home/paul/devel/wcs/wcs/publisher.py(39)<module>()
-> from root import RootDirectory
/home/paul/devel/wcs/wcs/root.py(37)<module>()
-> import forms.root
/home/paul/devel/wcs/wcs/forms/root.py(49)<module>()
-> from wcs.formdef import FormDef
> /home/paul/devel/wcs/wcs/formdef.py(1299)<module>()
-> EmailsDirectory.register('change_receiver', N_('Notification of change to receiver'),
```
Pas d'anomalie non plus sur la pile; c'est bien les sources qui sont executees et non le paquet Debian annexe
# Ecriture connecteur
Première étape :
lecture du code de Passerelle