Commit Graph

6260 Commits

Author SHA1 Message Date
Frédéric Péters 6dfb8cb004 ctl: open zip file in binary mode (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters 56652ecc62 admin: use binary files for theme/global export/import (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters f3db0ac83e workflows: open generated pdf file in binary mode (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters 1bb828399d backoffice: export ods as binary (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters fc7b809712 api: alter request user using hidden attribute (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters fa1cab0d22 tests: don't pass encoding to json.dumps (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters 52f490d19d misc: pass bytes to base64 in utils.attachment() function (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters 1950e4a219 formdef: handle base64 in xml import/export (#36515) 2019-11-20 09:17:20 +01:00
Frédéric Péters 8dcccc7e9c misc: pass bytes to base64 when doing http basic authentication (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters a369113446 misc: use strings when distributing base64 to json (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 71fce1ed83 workflows: use json_loads wrapper when displaying wscall error details (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters f3d08b571f tests: check generated PDF using bytes (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 594af7e6ad formdef: use itertools.chain to iterate over two lists (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters ca8d2f12ec tests: use bytes for attachments (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 6fb05aa64f tests: check download contents as bytes (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 75644e0e50 data sources: use bytes to generate hash for cache key (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters a549bf930c tests: write invalid json file using codecs.encode (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 16d69e14ab commands: adapt convert-to-sql for python3 (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 87e3f925cb tests: check convert to sql errors using str() (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters a41d06892e ctl: use bytes in check_hobos command (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 5d7e3d9ff1 ctl: use open() instead of file() (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters bd84240b5c tests: check provisioned user attribute as proper type (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 2d49eb4cbd tests: expand get_visited_objects result (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters a377981eee tests: only check integer part of reproj result (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 896f6a5607 misc: adapt nir code validation to py3 (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 1042ecb3f7 workflows: use force_str to display wscall error details (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 9926c1834d tests: check for different error message on py3 (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters e30cd03549 workflows: save webservice call response as bytes (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 2323b9e445 fields: force base64 data as bytes (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 9ec61bf16c workflows: update export to models for py3 (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 5a2f18f3d1 workflows: process model text as strings (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 332c910ee3 workflows: handle rtf as text (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters d8534d500b misc: encode bytes when producing json output (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 2268d53de0 conditions: adapt encoding of validation errors (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 728f4c4bf4 backoffice: expand geolocation as list (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 04ab5c8410 franceconnect: pass bytes to hashlib (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 458846d5b6 sessions: expand .items() when marking visited objects (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 66e84dadc8 hobo notify: use force_str on provisioned attributes (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 28c9c30b82 tests: check content as bytes (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 6f6635e598 workflows: read attachments as binaries (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 1adc8d855f storage: unpickle python2 strings as bytes (#36515)
(it would be so much easier to pass encoding='utf-8' and have them
converted but this will fail for objects with datetime/date/time
instances as those requires encoding='latin-1)
2019-11-20 09:17:19 +01:00
Frédéric Péters 2eb3b272bc misc: don't encode json in local charset in python 3 (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters c6ac153a8c request: rework json parsing for quixote3 (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters e331c73475 misc: load json as text (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 2a90f8e19e workflows: expand items as list (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters f20226c14b storage: add support for sorting disparate types (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters a22e384ac9 wscalls: use force_str when importing wscalls (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 3982bcb104 use force_str when initializing site from xml (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters d9f732c14f data sources: import xml as strings (#36515) 2019-11-20 09:17:19 +01:00
Frédéric Péters 9a42be138f backoffice: expand categories as list (#36515) 2019-11-20 09:17:19 +01:00