Commit Graph

3918 Commits

Author SHA1 Message Date
Frédéric Péters 776c367f31 form: correctly ignore empty values in WidgetList (#8866)
(it used to ignore None but we also want it to ignore '')
2015-11-04 17:55:25 +01:00
Thomas NOËL af16cb5948 update french translations 2015-11-04 16:07:13 +01:00
Frédéric Péters 7e83cd55e6 forms: give access to form_user_ from the first page (#8859) 2015-11-04 15:57:24 +01:00
Frédéric Péters 2d0251706f wscall: increase transmission timeout according to post size (#8865) 2015-11-04 15:53:03 +01:00
Frédéric Péters fe7f2a1ee2 forms: store empty non required strings as empty strings (#8862) 2015-11-04 15:47:59 +01:00
Frédéric Péters 18e4eafc20 api: export roles associated to a formdata (#8485) 2015-11-04 15:47:59 +01:00
Frédéric Péters ade043ea2a workflows: add custom graph transition message for wscall error jumps (#8846) 2015-11-04 15:47:59 +01:00
Frédéric Péters d6db0571c7 forms: do not display message for fields prefilled with a fixed string (#8838) 2015-11-04 15:47:59 +01:00
Frédéric Péters 8bac659dcb misc: display a different error message for formdef submits (#8837) 2015-11-04 15:47:59 +01:00
Frédéric Péters 99aa0994e5 api: fix looking up user attributes that would be missing (#8851) 2015-11-03 16:53:17 +01:00
Frédéric Péters 76e4bec2bd tests: add basic checks for WysiwygWidget (#8848) 2015-11-03 16:16:13 +01:00
Frédéric Péters 2dddd3bd91 tests: fix backoffice_info_test assertion in case of missing feedparser (#8848) 2015-11-03 16:16:13 +01:00
Frédéric Péters 5f4ba2e429 api: apply users query to all text fields (#8851) 2015-11-03 16:16:13 +01:00
Frédéric Péters a9a9a6f96b tests: run API tests with both pickle and SQL storages 2015-11-03 16:16:13 +01:00
Frédéric Péters bafda490e9 api: expose _structured field variants in json output (#8844) 2015-11-03 16:16:13 +01:00
Benjamin Dauvergne febe201e16 wf/export_to_model: don't reuse prefix variable (#4292)
(bug introduced in 29c8e2b0)
2015-11-03 14:02:51 +01:00
Benjamin Dauvergne a01aa5870c tests: fix test_store_async (#8847)
Test can fail if atomic_write() is slow, but behaviour is correct. Foobar.keys()
will always return a non True value as the file is first created by
get_new_id(create=True) and not by atomic_write().
2015-11-03 10:43:10 +01:00
Frédéric Péters 3413eb06fd misc: expire old drafts (#8468) 2015-11-02 08:08:40 +01:00
Frédéric Péters c7cb3b380b workflows: import ExportToModel in module namespace, for compatibility (#4292) 2015-10-29 11:52:03 +01:00
Benjamin Dauvergne d768286234 change signature for UploadWidget.validation parameter (#4292)
It should be a method raising qommon.forms.UploadValidationError if the
validation fails. Return value is ignored.
2015-10-29 11:21:13 +01:00
Benjamin Dauvergne c9f9a2e6da wf/export_to_model: add opendocument support (#4292) 2015-10-29 11:21:13 +01:00
Benjamin Dauvergne 29c8e2b02c wf/export_to_model: isolate ExportToModel (#4292) 2015-10-29 11:21:13 +01:00
Benjamin Dauvergne 854ca48030 workflows: factorize context building in template_on_formdata (#4292) 2015-10-29 11:21:13 +01:00
Frédéric Péters 31c092b820 backoffice: add a custom style for important bo-block (#8717) 2015-10-28 16:41:36 +01:00
Frédéric Péters 034633a020 fields: review item field to get back to previous behaviour (#8785)
In recent commits we tried to handle optional item field with an empty value
prepended to the list of options but while this allows the user to leave
optional fields uncompleted this is not the same behaviour we add.

Return to the previous behaviour.  The only way for an item field to be skipped
is now to be displayed as a <select> field with the hint put as the first
element.
2015-10-27 15:30:49 +01:00
Thomas NOËL b0c5ce245c update french translations 2015-10-26 15:57:42 +01:00
Frédéric Péters abaf9825df misc: add system icon, to be used for hobo 2015-10-26 15:35:06 +01:00
Frédéric Péters 9e1c4ead13 misc: fix check of window.console 2015-10-26 15:28:02 +01:00
Frédéric Péters 32a22ed1bf misc: only use console.log if it's available 2015-10-26 15:23:45 +01:00
Frédéric Péters e97b4d6233 fields: fix display of optional item fields that have no items (#8769) 2015-10-26 10:14:01 +01:00
Frédéric Péters 5c21487c4c fields: fix handling of optional item fields (#8737)
External data sources would add an empty element when the list was optional but
this was not the case when using the internal elements, and things were worked
around when rendering, and inserting, sometimes, the hint as a first element.

This is changed to always have an empty element as first item, and replacing it
with the hint when rendering.
2015-10-23 09:32:19 +02:00
Frédéric Péters a46d91e7d2 general: re-use draft formdata object if it exists (#8668) 2015-10-23 09:32:19 +02:00
Frédéric Péters f3cfe17d58 form: skip over None variables when computing autocomplete variadic URL (#8631) 2015-10-23 09:32:19 +02:00
Frédéric Péters 39a88562d9 forms: show uploaded images as thumbnails in form and validation pages (#8675) 2015-10-23 09:29:53 +02:00
Frédéric Péters 7088b86772 form: add aria-required to widgets (#8676) 2015-10-23 09:29:24 +02:00
Frédéric Péters 05f8268ae2 api: expose formdata retrieval api under /api/ (#8678) 2015-10-23 09:28:57 +02:00
Frédéric Péters df9bab4c1f form: add novalidate to cancel, previous and save-draft buttons (#6188) 2015-10-23 09:28:43 +02:00
Frédéric Péters 2126931d33 fields: correctly check data source tuple size (#8719) 2015-10-23 09:28:31 +02:00
Benjamin Dauvergne 704c420c0f hobo_notify: use publisher.user_class (#8664)
Using wcs.users.User directly is incompatible with SQL storage.
2015-10-16 10:51:39 +02:00
Benjamin Dauvergne 5d1bd13115 hobo_notify: reset user.roles before adding roles from the notification (#8444) 2015-10-13 16:30:17 +02:00
Benjamin Dauvergne 02b6add5cb hobo_notify: add user provisionning (#8444) 2015-10-13 15:18:45 +02:00
Benjamin Dauvergne ebe2e5b071 hobo_notify: adapt to change in message format (#8444) 2015-10-13 15:18:45 +02:00
Frédéric Péters 83a10b716e saml: handle PROFILE_ERROR_STATUS_NOT_SUCCESS like lasso.LOGIN_... (#8616) 2015-10-13 11:51:34 +02:00
Frédéric Péters 0d4f07d56f api: fix return of role associated to a workflow function (#8601) 2015-10-11 16:29:37 +02:00
Frédéric Péters caf87ecc34 misc: handle summary_url in submission context (#8595) 2015-10-09 18:32:15 +02:00
Frédéric Péters ae14c854da api: publish formdef workflow functions (#8589) 2015-10-09 16:56:28 +02:00
Frédéric Péters 123fc09698 forms: redirect to first form page on lost session (#8462) 2015-10-08 15:02:49 +02:00
Frédéric Péters f6b5a0f7e0 js: fix display of ckeditor (#8559) 2015-10-08 15:01:01 +02:00
Frédéric Péters 2dd44b7b44 misc: don't add new backoffice directories to _q_exports (#8550)
This brings a bypass of the _q_lookup call and the security checks are
therefore skipped.
2015-10-08 10:03:39 +02:00
Thomas NOËL 133e45f2b3 fix a french translation (#8556) 2015-10-08 09:30:53 +02:00