Commit Graph

6209 Commits

Author SHA1 Message Date
Frédéric Péters 78084aa023 ctl: open zip file in binary mode (#36515) 2019-11-19 15:59:54 +01:00
Frédéric Péters 7a446f5c88 admin: use binary files for theme/global export/import (#36515) 2019-11-19 15:59:52 +01:00
Frédéric Péters 1591530889 workflows: open generated pdf file in binary mode (#36515) 2019-11-19 15:59:51 +01:00
Frédéric Péters 8e52fc8814 backoffice: export ods as binary (#36515) 2019-11-19 15:59:50 +01:00
Frédéric Péters b3bc038a2e api: alter request user using hidden attribute (#36515) 2019-11-19 15:59:48 +01:00
Frédéric Péters e0e128de4b tests: don't pass encoding to json.dumps (#36515) 2019-11-19 15:59:47 +01:00
Frédéric Péters 1ec58ee869 misc: pass bytes to base64 in utils.attachment() function (#36515) 2019-11-19 15:59:46 +01:00
Frédéric Péters 96bf98cd7c formdef: handle base64 in xml import/export (#36515) 2019-11-19 15:59:45 +01:00
Frédéric Péters a33e8ff8b4 misc: pass bytes to base64 when doing http basic authentication (#36515) 2019-11-19 15:59:43 +01:00
Frédéric Péters 6875bf8954 misc: use strings when distributing base64 to json (#36515) 2019-11-19 15:59:42 +01:00
Frédéric Péters 72bd7af167 workflows: use json_loads wrapper when displaying wscall error details (#36515) 2019-11-19 15:59:40 +01:00
Frédéric Péters dabe208677 tests: check generated PDF using bytes (#36515) 2019-11-19 15:59:39 +01:00
Frédéric Péters 5793e5c509 formdef: use itertools.chain to iterate over two lists (#36515) 2019-11-19 15:59:38 +01:00
Frédéric Péters 8158b456fa tests: use bytes for attachments (#36515) 2019-11-19 15:59:37 +01:00
Frédéric Péters d62e945441 tests: check download contents as bytes (#36515) 2019-11-19 15:59:35 +01:00
Frédéric Péters 9b2e2c8d13 data sources: use bytes to generate hash for cache key (#36515) 2019-11-19 15:59:34 +01:00
Frédéric Péters ed9cdb777c tests: write invalid json file using codecs.encode (#36515) 2019-11-19 15:59:32 +01:00
Frédéric Péters 844dea5853 commands: adapt convert-to-sql for python3 (#36515) 2019-11-19 15:59:31 +01:00
Frédéric Péters 31cc721510 tests: check convert to sql errors using str() (#36515) 2019-11-19 15:59:30 +01:00
Frédéric Péters 8c1fc39764 ctl: use bytes in check_hobos command (#36515) 2019-11-19 15:58:57 +01:00
Frédéric Péters b401245d4b ctl: use open() instead of file() (#36515) 2019-11-19 15:58:54 +01:00
Frédéric Péters 87e940ddfc tests: check provisioned user attribute as proper type (#36515) 2019-11-19 15:58:53 +01:00
Frédéric Péters 248e7563c7 tests: expand get_visited_objects result (#36515) 2019-11-19 15:58:51 +01:00
Frédéric Péters 9f9f623cb4 tests: only check integer part of reproj result (#36515) 2019-11-19 15:58:49 +01:00
Frédéric Péters a68dccf8dd misc: adapt nir code validation to py3 (#36515) 2019-11-19 15:58:47 +01:00
Frédéric Péters dc82d0f918 workflows: use force_str to display wscall error details (#36515) 2019-11-19 15:58:46 +01:00
Frédéric Péters 21ee4427c6 tests: check for different error message on py3 (#36515) 2019-11-19 15:58:44 +01:00
Frédéric Péters b1fa54eb33 workflows: save webservice call response as bytes (#36515) 2019-11-19 15:58:42 +01:00
Frédéric Péters 6c89239f3d fields: force base64 data as bytes (#36515) 2019-11-19 15:58:41 +01:00
Frédéric Péters 129306e47d workflows: update export to models for py3 (#36515) 2019-11-19 15:58:39 +01:00
Frédéric Péters 85a4024417 workflows: process model text as strings (#36515) 2019-11-19 15:58:36 +01:00
Frédéric Péters 091ba4ae15 workflows: handle rtf as text (#36515) 2019-11-19 15:58:33 +01:00
Frédéric Péters 81f2f7d90c misc: encode bytes when producing json output (#36515) 2019-11-19 15:58:32 +01:00
Frédéric Péters 7d329c856b conditions: adapt encoding of validation errors (#36515) 2019-11-19 15:58:26 +01:00
Frédéric Péters d0b9ff274c backoffice: expand geolocation as list (#36515) 2019-11-19 15:58:25 +01:00
Frédéric Péters a4b8063976 franceconnect: pass bytes to hashlib (#36515) 2019-11-19 15:58:23 +01:00
Frédéric Péters 5a7161bbb5 sessions: expand .items() when marking visited objects (#36515) 2019-11-19 15:58:22 +01:00
Frédéric Péters fca37a3205 hobo notify: use force_str on provisioned attributes (#36515) 2019-11-19 15:58:20 +01:00
Frédéric Péters 4c6c08dcae tests: check content as bytes (#36515) 2019-11-19 15:58:19 +01:00
Frédéric Péters 10d4451122 workflows: read attachments as binaries (#36515) 2019-11-19 15:58:15 +01:00
Frédéric Péters 3444d4bec8 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-19 15:58:05 +01:00
Frédéric Péters d0b2407738 misc: don't encode json in local charset in python 3 (#36515) 2019-11-19 15:58:04 +01:00
Frédéric Péters 5f8c243cd0 request: rework json parsing for quixote3 (#36515) 2019-11-19 15:57:53 +01:00
Frédéric Péters 7523343893 misc: load json as text (#36515) 2019-11-19 15:57:52 +01:00
Frédéric Péters c3057f76bd workflows: expand items as list (#36515) 2019-11-19 15:57:50 +01:00
Frédéric Péters ca35deba02 storage: add support for sorting disparate types (#36515) 2019-11-19 15:57:47 +01:00
Frédéric Péters c089fbe70c wscalls: use force_str when importing wscalls (#36515) 2019-11-19 15:57:39 +01:00
Frédéric Péters 937b2c538d use force_str when initializing site from xml (#36515) 2019-11-19 15:57:38 +01:00
Frédéric Péters 4f7d4cd6cf data sources: import xml as strings (#36515) 2019-11-19 15:57:37 +01:00
Frédéric Péters 75c18872dc backoffice: expand categories as list (#36515) 2019-11-19 15:57:35 +01:00