summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Loupias <eloupias@grandlyon.com>2019-07-10 07:42:16 (GMT)
committerEtienne Loupias <eloupias@grandlyon.com>2019-07-10 07:42:16 (GMT)
commitc7bad3f5d0a07b76dc9869ec2ad7c130bacdfcc6 (patch)
treecbdefa519bac0986de15c0f45e0612dd1902737b
parentd95b23450be2d1f525328dd178f078a38e899159 (diff)
downloadpasserelle-grandlyon-elyx-master.zip
passerelle-grandlyon-elyx-master.tar.gz
passerelle-grandlyon-elyx-master.tar.bz2
Remodif ID_REQ_SIG...HEADv1.0master
-rw-r--r--grandlyon_elyx/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grandlyon_elyx/models.py b/grandlyon_elyx/models.py
index c00549c..6cd9e99 100644
--- a/grandlyon_elyx/models.py
+++ b/grandlyon_elyx/models.py
@@ -112,7 +112,7 @@ class GrandlyonElyx(BaseResource):
send_request = requests.Request()
send_request.headers['Content-Type'] = 'application/json'
send_request.url = self.service_url+'/rr/Demandes?operation=envoi'
- send_request.data = u'{"objet_json":"demandePortail","ID_REQ_SIG":"'+user_email+'_'+formdata.values['tracking_code']+'_'+timestamp+'",'
+ send_request.data = u'{"objet_json":"demandePortail","ID_REQ_SIG":"'+user_email+'_'+formdata.values['type_de_demande']+'_'+formdata.values['tracking_code']+'_'+timestamp+'",'
send_request.data += u'"ID_REQ_DEMANDE":"'+formdata.values['type_de_demande']+'-'+formdata.values['tracking_code']+'","TYPE":"'+formdata.values['type_de_demande']+'","DATE_DEM":"'+datetime.datetime.now().strftime('%d/%m/%Y')+'",'
send_request.data += u'"CIVILITE":"'+self.none_to_str(formdata.values['civilite_code'])+'","NOM":"'+self.none_to_str(formdata.values['nom'])+'","PRENOM":"'+self.none_to_str(formdata.values['prenom'])+'","ADRESSE":"'+self.none_to_str(formdata.values['numero_voie'])+' '+self.none_to_str(formdata.values['voie'])+'","BP":"'+self.none_to_str(formdata.values['boite_postale'])
send_request.data += u'","CP":"'+self.none_to_str(formdata.values['code_postal'])+'","VILLE":"'+self.none_to_str(formdata.values['commune'])+'",'