Commit Graph

4288 Commits

Author SHA1 Message Date
Frédéric Péters aa617eaf3d api: encode files that may exist in workflow_data (#10769) 2016-05-04 15:11:23 +02:00
Frédéric Péters 00d56c1424 fields: be lax on date(/time) format of date field settings (#10742) 2016-05-04 15:11:23 +02:00
Frédéric Péters 98f638cedd api: add support for POST on existing formdata, for edition (#10749) 2016-05-04 14:31:50 +02:00
Thomas NOËL 51426266c2 update french translations (related to #10836) 2016-05-04 14:23:05 +02:00
Thomas NOËL 7d96cc9219 clarify condition use in post-conditions (#10836) 2016-05-04 14:16:40 +02:00
Frédéric Péters 4bb5cdaa80 fields: add css class to list field in view form (#10833) 2016-05-04 14:01:46 +02:00
Thomas NOËL bba00439d4 update french translations 2016-05-04 13:15:23 +02:00
Thomas NOËL a18adc30d3 i18n: use 'portfolio' instead of 'dropbox' (#10822) 2016-05-04 13:06:56 +02:00
Frédéric Péters e6a0acdac5 forms: always set prefill attributes (#10760) 2016-05-04 12:28:14 +02:00
Frédéric Péters 1e2d34506f misc: check for lost session in autosave (#10286) 2016-05-04 12:28:14 +02:00
Frédéric Péters fdb9fb9afc backoffice: add mini map to geolocated forms (#10581) 2016-05-04 09:42:43 +02:00
Frédéric Péters e5826951f7 workflows: add action to geolocate a formdata (#10581) 2016-05-04 09:42:43 +02:00
Frédéric Péters fd4aa8de1b backoffice: add "geolocations" option to forms (#10581) 2016-05-04 09:42:43 +02:00
Frédéric Péters ce9a73f690 general: add geolocation to formdata (#10581) 2016-05-04 09:42:43 +02:00
Frédéric Péters c033775703 js: invalidate leaflet map when container is displayed (#10780) 2016-05-04 09:42:43 +02:00
Thomas NOËL e39198f8c2 i18n: using format strings with named arguments (#10821) 2016-05-04 09:32:05 +02:00
Thomas NOËL 89924c1940 misc: support variadic URL with trailing / (#10813) 2016-05-03 19:15:26 +02:00
Frédéric Péters 334a4d3b34 misc: handle None when unserializing file field from json (#10786) 2016-05-02 17:00:00 +02:00
Thomas NOËL 59d3190118 data_source: dont ignore list items without text (#10798) 2016-05-02 14:17:18 +02:00
Frédéric Péters da9b867256 misc: fix handling of None visiting_objects 2016-04-30 23:25:45 +02:00
Benjamin Dauvergne b9b914b948 api: include more workflow details in formdef schema (#9849) 2016-04-30 21:00:39 +02:00
Frédéric Péters d660efd9df backoffice: keep track of agent doing backoffice submissions (#10108) 2016-04-29 17:41:35 +02:00
Frédéric Péters c7cc30d21f api: allow wscall output as formdata/submit input (#10661) 2016-04-29 16:27:33 +02:00
Frédéric Péters 82b0e7dd00 admin: redirect to anchored field after submit (#10759) 2016-04-28 18:42:05 +02:00
Frédéric Péters 6ca676b64e admin: display configuration and preview on data source page (#10705) 2016-04-19 12:20:13 +02:00
Frédéric Péters 35c818b16f admin: make "data sources" accessible from forms/workflows sections (#10136) 2016-04-19 12:20:13 +02:00
Frédéric Péters 32f7f5ba27 sessions: make sure session.visited_objects is as dict (#10687) 2016-04-19 11:41:11 +02:00
Frédéric Péters 6ceb3b4b27 forms: include functions in XML export (#10650) 2016-04-19 11:41:11 +02:00
Frédéric Péters 7683303c04 misc: let geolocation fill textarea (#10706) 2016-04-19 11:41:11 +02:00
Frédéric Péters 8f805b29ca pylint: don't format strings passed to logger [logging-not-lazy] 2016-04-18 23:18:20 +02:00
Frédéric Péters 8600f52208 pylint: correctly escape \ characters [anomalous-backslash-in-string] 2016-04-18 23:18:20 +02:00
Frédéric Péters 43933c9353 pylint: remove superfluous use of eval() [eval-used] 2016-04-18 23:18:20 +02:00
Frédéric Péters c92f092db0 pylint: remove unused imports [unused-import] 2016-04-18 23:18:20 +02:00
Frédéric Péters 5e09f2bf68 pylint: break cyclic import of get_user_from_api_query_string [cyclic-import] 2016-04-18 23:18:20 +02:00
Frédéric Péters 67f43374e7 pylint: change comparisons to None/True to use "is" [singleton-comparison] 2016-04-18 23:18:20 +02:00
Frédéric Péters 7bed74f3a7 pylint: fix base raise statement to use exception (misplaced-bare-raise) 2016-04-18 23:18:20 +02:00
Frédéric Péters ac8f790cd5 trivial: unconditionnaly use hashlib 2016-04-18 23:18:20 +02:00
Frédéric Péters 8b133928a2 pylint: don't reimport Role [reimported] 2016-04-18 23:18:19 +02:00
Frédéric Péters e1b3acd0a0 pylint: give every module import its own line [multiple-imports] 2016-04-18 23:18:19 +02:00
Frédéric Péters 96951c971e workflows: don't perform "export to model" if no model has been set (#10694) 2016-04-18 17:52:24 +02:00
Frédéric Péters f78aba4cf2 workflows: add MissingSecret import (#10690) 2016-04-18 17:04:39 +02:00
Frédéric Péters 4b1bc29708 backoffice: include real <a> link to form in global listing (#10680) 2016-04-18 14:21:05 +02:00
Frédéric Péters a64d572119 workflows: add possibility of confirmation dialogs (#6791) 2016-04-18 11:46:36 +02:00
Benjamin Dauvergne d1debe7205 do not depend on auquotidien to show fargo pick a file button (#10515)
It also changes the behaviour from auquotidien so that the button is hidden if
the user is not connected.

Dropbox picking link is placed inside the hint of the upload widgeet, hint of
the FileWithPreviewWidget is also moved there. qommon.fileupload.js and fargo.js
are modified to hide the link when the field is filled with a file.
2016-04-18 10:57:24 +02:00
Benjamin Dauvergne 0cbecba855 add option to push attached document to portfolio (#10506) 2016-04-18 10:57:24 +02:00
Benjamin Dauvergne 5dc0400fc3 implement URL signatures in the file validation web-service calls (#10444) 2016-04-18 10:57:24 +02:00
Benjamin Dauvergne 8fa39285df tests: generalize site-options.cfg fixtures (#10444) 2016-04-18 10:57:24 +02:00
Benjamin Dauvergne 13be7a0ec4 move API signing functions in their own module (#10444)
Having them in the api module leads to circular imports.
Also get_secret() has been rewritten as get_secret_and_orig().
2016-04-18 10:57:24 +02:00
Benjamin Dauvergne b70212a921 rewrite file validation (#10444)
- metadata fields are now directly added to the form, as part of the
  FileWithPreviewWidget sub-widgets (it's a CompositeWidget)
- existing validated metadatas are proposed for prefilling
- if prefilled no file is uploadee, and a special upload class NoUpload is used
  instead of a PicklableUpload, it only contains the metadatas.
- prefilled fields are disabled,
- on upload of a new file all prefilled fields are emptied and re-enabled.
- modify XML import/export to encode metadata sub-field as JSON in exports
- add test on import/export of FileField with metadata
- rewritten tests around file validation
2016-04-18 10:57:24 +02:00
Benjamin Dauvergne a058a0158f add support for Basic HTTP authentication to _http_request (#10444) 2016-04-18 10:57:24 +02:00