Commit Graph

449 Commits

Author SHA1 Message Date
Benjamin Dauvergne d717bdf4be dpark: add .pdf extension to attached files (#32657) 2019-05-14 10:51:27 +02:00
Frédéric Péters 2f93dffe76 cartads: handle notification of errors (#32941) 2019-05-09 15:18:25 +02:00
Emmanuel Cazenave f1d45d0d0e planitec: add getplace endpoint (#32800) 2019-05-06 14:06:33 +02:00
Benjamin Dauvergne e2f8d7f441 initialize sp_fr connector (#31595)
New connector for transfering forms from Service-Public.fr to w.c.s.
2019-04-29 14:56:55 +02:00
Benjamin Dauvergne 7ce97ff996 add utilities to call w.c.s. APIs (#32656) 2019-04-29 11:42:41 +02:00
Benjamin Dauvergne d5352aec67 add utilities to access SFTP servers (#32655)
Disclaimer: paramiko does not work with recent OpenSSH key format (PKCS8
or RFC4716), only the legacy PEM format is supported.
2019-04-29 11:26:23 +02:00
Benjamin Dauvergne d643e759b7 atos-genesys: add new endpoints search and link-by-id-per (#32618)
xml_request had to be factorized to created xml_request_multiple as the
Genesys web-service for search return multiple results
(all other WS returns only one).

call_select_usager was also factorized to serve as basis for
call_select_usager_by_ref.

The search endpoint does a first call to Genesys for listing REF_PER then
for each REF_PER a call to selectUsagerByRefPer to get the ID_PER and
contact informations necessary for appairage.
2019-04-25 13:52:09 +02:00
Benjamin Dauvergne 6427389205 atos-genesys: factorize RESPONSE_SELECT_USAGER in tests (#32618) 2019-04-25 13:49:03 +02:00
Benjamin Dauvergne 33f2a98e25 atos-genesys: normalize webservice url before use (#32618)
All web-services exposed does not have the same prefix some are under the
path WSUsagerPublik/services/PublikService/ but those for intermediation
will be under WSIntermed/services/IntermediationService/. As we used the URL
with prefix included as base_url we must normalize it now
(remove prefix from base_url).
2019-04-25 13:48:27 +02:00
Serghei Mihai 765166fa6d utils: write atomic temporary file on default storage location (#32543) 2019-04-24 10:08:24 +02:00
Benjamin Dauvergne 95446af6ce tests: define a MEDIA_ROOT (#32516)
To prevent cluttering project root with tests files. Some connector's
test had to be changed:
* family connector tests had to be changed as it magically used a local
file path as a Django stored file path.
* mdel tests where completely bogus around storage
2019-04-23 11:40:28 +02:00
Serghei Mihai f8d75cdc01 cityweb: set file read permission for group (#32517) 2019-04-23 10:23:58 +02:00
Serghei Mihai cf3957fb92 cityweb: do not compress demand files (#32091) 2019-04-22 09:38:32 +02:00
Benjamin Dauvergne c778669e90 utils: add an atomic_write() context manager (#32413) 2019-04-19 17:46:13 +02:00
Emmanuel Cazenave 7554e021a2 tests: adjust an assertion on a planitec label (#32189) 2019-04-19 11:55:29 +02:00
Benjamin Dauvergne 72489a1707 Revert "utils: add an atomic_write() context manager (#32413)"
This reverts commit a52c914e8f.
2019-04-19 11:19:11 +02:00
Thomas NOËL d5929e6958 solis: handle id in referential query (#32455) 2019-04-18 15:32:32 +02:00
Benjamin Dauvergne a52c914e8f utils: add an atomic_write() context manager (#32413) 2019-04-17 16:42:33 +02:00
Serghei Mihai 16100aa2fb api_entreprise: add initial connector (#30010) 2019-04-15 14:31:42 +02:00
Frédéric Péters fdf35728ad base adresse: add support for ?id= on streets endpoint (#32132) 2019-04-10 10:59:27 +02:00
Serghei Mihai 595e4a1773 vivaticket: add support for booking's "comment" field (#32105) 2019-04-09 09:49:41 +02:00
Thomas NOËL b00b070523 to_pdf: detect PDF with BOM prefix (#32088) 2019-04-08 16:51:44 +02:00
Emmanuel Cazenave 561b159936 planitec: add getreservationsinfo endpoint (#31625) 2019-04-04 11:19:45 +02:00
Emmanuel Cazenave 1660716b26 planitech: add a pricing code on users (#30261) 2019-04-03 19:41:41 +02:00
Emmanuel Cazenave 62e683f378 planitech: getreservationprice endpoint (#30261) 2019-04-03 17:07:12 +02:00
Frédéric Péters 891b143d2a jsondatastore: return entries alphabetically sorted (#31714) 2019-04-02 13:31:13 +02:00
Frédéric Péters dc80587d5c csvdatasource: provide a ?id= filter to queries (#31491) 2019-04-02 13:31:13 +02:00
Serghei Mihai 585d1a1656 vivaticket: send form url in dedicated HTTP Header (#31877) 2019-04-01 18:48:54 +02:00
Serghei Mihai 4f491a22e4 vivaticket: send booking's contact informations (#31853) 2019-04-01 18:39:49 +02:00
Thomas NOËL 1d798fb874 okina: refine errors handling (#31557) 2019-03-21 11:27:53 +01:00
Frédéric Péters 3c718f8611 tests: add check for import/export of access rights 2019-03-20 14:41:54 +01:00
Benjamin Dauvergne eef9f43d34 mpdh13: order demands by date (#31562) 2019-03-19 18:15:47 +01:00
Nicolas Roche 0b82a19d0c iparapheur: add a field to override endpoint location on wsdl (#30258) 2019-03-18 14:56:05 +01:00
Nicolas Roche 00211a4cc8 iparapheur: resolv no basic_authentication on w3.org (#31274) 2019-03-18 13:57:01 +01:00
Nicolas Roche ac5172e542 iparapheur: pass unit tests using zeep soap library (#31265) 2019-03-18 13:50:38 +01:00
Nicolas Roche cc0cc0767d iparapheur: don't pass explicit parameters to transport (#31226) 2019-03-18 12:44:05 +01:00
Benjamin Dauvergne 48832b135a mdph13: remove check_status (#31452) 2019-03-15 13:36:21 +01:00
Benjamin Dauvergne 5d3369fd61 mdph13: pass client ip to backend (#31445) 2019-03-15 11:17:20 +01:00
Benjamin Dauvergne 74428481d1 mpdh13: PEP8 (#31445) 2019-03-15 11:16:46 +01:00
Benjamin Dauvergne 52522274e6 mdph13: only validate valued date fields (#31279) 2019-03-12 12:08:29 +01:00
Benjamin Dauvergne b8b8d140f6 mdph13: keep computed display name on Link (#31249) 2019-03-11 11:21:06 +01:00
Benjamin Dauvergne 941d080094 allow ressources to disable error logging in requests wrapper (#31114)
- modify ProxyLogger to get request from the "extra" parameter like Django, it
  incurs that we need to clean extra from non JSON-serializable values
  before using it in the ResourceLog model.

- modify to_json() so that request is passed to every log calls as
  before commit 5286592cf, now we will get error mails containing Django
  request details.

- resource can set "log_requests_errors = False" so that the Request
  wrapper never log at the error/warning level.

- small annoyance: requests errors are logged two times, at the INFO
  level and the ERROR level.

- connector MDPH13 is adapted to use all this.
2019-03-07 18:12:59 +01:00
Benjamin Dauvergne c2ed3a44ae mpdh13: validate date syntax (#31186) 2019-03-07 13:26:21 +01:00
Benjamin Dauvergne 884854c29e mdph13: add a text property to dossiers (fixes #31116) 2019-03-06 16:36:44 +01:00
Benjamin Dauvergne 4502d797cf views: implement GenericEndpointView.delete (#31118) 2019-03-06 10:42:56 +01:00
Benjamin Dauvergne ad953198e9 add MDPH13 connector (#30692) 2019-03-05 15:12:07 +01:00
Nicolas Roche 3885a94e0c iparapheur: add endpoint to display raw wsdl (#30257) 2019-03-04 14:34:28 +01:00
Benjamin Dauvergne 235971b103 tests: run tests with postgres (fixes #30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne 3a6c697add tests: fix null character in charfield (#30458) 2019-03-01 17:55:02 +01:00
Benjamin Dauvergne fe2772afb5 tests: mark some base_adresse tests as expected to fail (#30458) 2019-03-01 17:55:02 +01:00