Commit Graph

1619 Commits

Author SHA1 Message Date
Benjamin Dauvergne 6d844e1529 api_entreprise: prevents requests to log HTTP errors (#33056) 2019-05-15 15:14:08 +02:00
Benjamin Dauvergne a2eccafe01 api_entreprise: enforces PEP8 (#33056) 2019-05-15 15:14:08 +02:00
Benjamin Dauvergne d18fa62ba6 api_entreprise: uses exception_to_text() to display exceptions (#33056) 2019-05-15 15:14:08 +02:00
Benjamin Dauvergne b30af7aeb7 api_entreprise: uses temporary to fix indentation (#33056) 2019-05-15 15:14:08 +02:00
Benjamin Dauvergne 247149b2f3 api_entreprise: removes dead import (#33056) 2019-05-15 15:14:08 +02:00
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
Benjamin Dauvergne 6ef50ecab0 sp_fr: don't raise exceptions during transfer to w.c.s. (#32853) 2019-05-07 11:49:04 +02:00
Benjamin Dauvergne 62ef6d9f66 sp_fr: accepts 200 *new* requests per run (#32852) 2019-05-07 11:46:04 +02:00
Benjamin Dauvergne 43813ee6bb sp_fr: crawl sftp hourly (#32851) 2019-05-07 11:43:08 +02:00
Benjamin Dauvergne f5f518b04e sp_fr: ignore empty data when transfering requests to w.c.s. (#32849) 2019-05-07 11:42:20 +02:00
Benjamin Dauvergne c834f429bc sp_fr: extract email from header file (#32848) 2019-05-07 11:11:33 +02:00
Emmanuel Cazenave c8fc7409f2 translation update 2019-05-06 16:03:09 +02:00
Emmanuel Cazenave f1d45d0d0e planitec: add getplace endpoint (#32800) 2019-05-06 14:06:33 +02:00
Frédéric Péters e1f8bf238c cartads: don't include None descriptions in labels (#32745) 2019-05-02 12:21:11 +02:00
Benjamin Dauvergne b312381a75 greco: escape XML illegal characters (#32681) 2019-04-30 18:12:35 +02:00
Benjamin Dauvergne 7fcf7d082e sp_fr: allow 3 unbounded elements (#31595) 2019-04-30 17:51:31 +02:00
Benjamin Dauvergne 23acaa3bd7 sp_fr: propagate renaming of procedures (#31595) 2019-04-30 17:32:15 +02:00
Benjamin Dauvergne 901f596c69 sp_fr: propagate renaming of procedures (#31595)
Methods generating list of custom variables had to be renamed.
2019-04-30 16:56:00 +02:00
Benjamin Dauvergne 4e2ba91736 sp_fr: do not create QName with None namespace (#31595)
It's not supported with lxml<4.3.3.
2019-04-30 14:07:49 +02:00
Benjamin Dauvergne 8272888ec4 sftp: be compatible with paramiko >=2.0,<2.2 (#32656) 2019-04-29 18:41:12 +02:00
Benjamin Dauvergne f065c32f76 sftp: skip Ed25519Key if missing (#32655) 2019-04-29 17:17:34 +02:00
Benjamin Dauvergne a66c64273a sp_fr: distribute XSD files (#31595) 2019-04-29 17:16:30 +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 bb23a556ca base: add base template for resource child views (#32652) 2019-04-29 11:05:55 +02:00
Benjamin Dauvergne b621988b17 base: add mixins for child model views (#32652) 2019-04-29 11:05:55 +02:00
Benjamin Dauvergne a5fc4515e8 plugins: add connector slug to view kwargs to get uniformity of kwargs in views (#32554)
It means any plugin view can get its connector slug from
self.kwargs['connector'].
2019-04-29 11:05:13 +02:00
Benjamin Dauvergne edf36dc45b views: wraps generic writing views with atomic() (#32533)
To prevent uninitialized connector instances to remain when errors occur
during Model.save() notably in the csvdatasource application.
2019-04-26 16:43:13 +02:00
Benjamin Dauvergne 39c2b61daf fix PEP8 / code style (#32533) 2019-04-26 16:41:57 +02:00
Benjamin Dauvergne 831469db1b templates: use with_template in service_form.html (#32650) 2019-04-26 15:54:17 +02:00
Benjamin Dauvergne 49867fa6b7 models: hide related_name and related_query_name for BaseResource.users (#32553)
It creates errors if a connector names its connector model 'Resource',
as all related names on users get the same name.
2019-04-26 15:42:51 +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 beb4f0e2e3 settings: order INSTALLED_APPS alphabetically (#32528) 2019-04-23 15:07:06 +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
Thomas NOËL 6c934db41c translation update 2019-04-23 10:59:52 +02:00
Thomas NOËL b2b3248bd3 debian: remove a bad empty line in debian/control 2019-04-23 10:38:42 +02:00
Serghei Mihai f8d75cdc01 cityweb: set file read permission for group (#32517) 2019-04-23 10:23:58 +02:00
Christophe Siraut bc897a9fa9 debian: add pyexcel dependency (#32507) 2019-04-23 10:12:12 +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
Christophe Siraut 5c344f80d3 debian: bump debhelper compatibility level (#32260) 2019-04-19 14:38:45 +02:00
Emmanuel Cazenave 7554e021a2 tests: adjust an assertion on a planitec label (#32189) 2019-04-19 11:55:29 +02:00
Emmanuel Cazenave f4c7c2f685 planitec: change some labels from planitech to planitec (#32189) 2019-04-19 11:30:31 +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
Serghei Mihai 1a60c1acd3 api_entreprise: fix parameteres names, labels and examples (#32411) 2019-04-18 18:53:56 +02:00