Commit Graph

5052 Commits

Author SHA1 Message Date
Benjamin Dauvergne 5cc3847843 api: change schema of formdefs, user/forms and user/drafts APIs (#13184)
All responses now have the form {"err": x, "data": y}.
2018-01-16 12:49:09 +01:00
Frédéric Péters b6e5b36890 api: only return formdef count if it is requested (#21166) 2018-01-16 11:41:11 +01:00
Frédéric Péters e66a4d0a8e emails: don't escape variables in text/plain templates (#21088) 2018-01-16 09:38:00 +01:00
Frédéric Péters 408f342b9c workflows: let django escaping do its job in evolution comments (#20996)
Always consider contents to be HTML and follow standard Django rules
when Django template syntax is used in "register comment" (add to
history) actions.

As strings should start with a < to be interpreted as HTML at display
times, enclose the whole thing in a <div> if no other tag is at the
start of the string.
2018-01-15 09:30:18 +01:00
Frédéric Péters 6b7e8d9b9c tests: filter out DTSTAMP when comparing ics data (#20841) 2018-01-15 09:29:32 +01:00
Frédéric Péters 163edf48f2 workflows: don't expose disabled forms in resubmit action (#21147) 2018-01-12 14:04:40 +01:00
Frédéric Péters 3af195cbf5 workflows: fix selection of forms presented by resubmit in frontoffice (#21148) 2018-01-12 14:04:40 +01:00
Frédéric Péters 0f60f7b475 workflows: fix initial values of resubmit settings (#21142) 2018-01-12 14:04:40 +01:00
Frédéric Péters 698a013d50 templates: pass request in context whenever it's available (#21137) 2018-01-12 14:03:16 +01:00
Frédéric Péters 644619cea4 update French translation 2018-01-09 12:33:59 +01:00
Frédéric Péters 79665be0c5 api: load all evolutions at once in formdatas API (#21028) 2018-01-09 11:30:02 +01:00
Thomas NOËL 5dbb87ef43 admin: warn if a form contains more than 500 fields (#20963) 2018-01-05 11:58:57 +01:00
Thomas NOËL 200a391e6d formdefs: try to preserve fields ids on import (#21001) 2018-01-05 03:51:07 +01:00
Frédéric Péters ffb3a3f0ee update tox for django 1.11 and correct dependencies 2018-01-03 15:00:26 +01:00
Frédéric Péters b483ea747d workflow: extend resubmit action for frontoffice and preset target (#20009) 2018-01-02 18:00:03 +01:00
Frédéric Péters eb7d39a3b1 debian: move "stable" settings to debian_config.py (#20955) 2018-01-02 18:00:03 +01:00
Frédéric Péters bc4cb0ae9d tests: add custom settings file to allow hosts (#20936) 2018-01-02 15:56:47 +01:00
Frédéric Péters f769ef945b misc: update Context usage in template strings (#20936) 2018-01-02 15:56:47 +01:00
Frédéric Péters 3d65e3066a tests: update redirection checks for django 1.11 (#20936) 2018-01-02 15:56:47 +01:00
Frédéric Péters 2d9e26ccf3 misc: update context usage for django 1.11 (#20936) 2018-01-02 15:56:47 +01:00
Frédéric Péters 7bb2caf277 misc: update settings to use TEMPLATES (#20936) 2018-01-02 15:56:47 +01:00
Frédéric Péters 999892348a misc: don't use named views in urls.py (#20936) 2018-01-02 15:56:47 +01:00
Thomas NOËL eacc34a638 formdata: anonymise backoffice fields (#20840) 2018-01-02 14:54:19 +01:00
Frédéric Péters def9802431 sql: unaccent strings for full text search (#9112) 2018-01-02 14:52:21 +01:00
Frédéric Péters cccecb7f12 misc: don't propagate Connection HTTP header (#20916) 2018-01-02 14:31:20 +01:00
Frédéric Péters e415703bf5 templates: monkey patch django template variable resolution for strings (#20885) 2018-01-02 14:10:59 +01:00
Frédéric Péters 994d086040 forms: include field type as css class in status page (#20932) 2018-01-02 08:51:08 +01:00
Frédéric Péters a14bc64ed5 formdata: add new is_at_endpoint_status method (#20931) 2018-01-02 08:51:08 +01:00
Frédéric Péters 5658245590 forms: give display_fields a default value for fields (#20930) 2018-01-02 08:51:08 +01:00
Frédéric Péters 41d7dd083c misc: don't let ckeditor turn characters into entities (#20886) 2017-12-26 13:21:56 +01:00
Frédéric Péters a0b4d6c77f misc: use global evaluation dictionary when evaluating data sources (#16978)
This makes it possible to use "evalutils" functions and "complex" types.
2017-12-26 13:21:56 +01:00
Frédéric Péters 265bb77888 translation update
(to match label used in other applications)
2017-12-25 20:41:39 +01:00
Frédéric Péters b36c9ef53b backoffice: rely on gadjo for header user info links (#20882) 2017-12-25 20:41:12 +01:00
Thomas NOËL e7fe4fba8b api: add backoffice-submission parameters to formdefs endpoints (#17689) 2017-12-23 14:02:25 +01:00
Thomas NOËL 5b24487029 debian: add stat and diagnostic options in uwsgi.ini (#20266) 2017-12-23 13:57:07 +01:00
Frédéric Péters b32121896e misc: log technical representation of email recipients (#20845) 2017-12-21 13:35:54 +01:00
Frédéric Péters 61ac50dc93 misc: give the user object some django-named template methods (#20843) 2017-12-21 13:35:54 +01:00
Frédéric Péters cab77bf57f misc: add template tags to parse date/datetimes (#20842) 2017-12-21 11:21:06 +01:00
Frédéric Péters 3de2b87c1b translation update 2017-12-20 23:34:37 +01:00
Thomas NOËL a698bcdd0d misc: add a REQUESTS_TIMEOUT settings for requests calls (#20825) 2017-12-20 17:25:50 +01:00
Frédéric Péters 0218258a15 templates: fix encoding handling in django templates (#20831) 2017-12-20 17:16:11 +01:00
Frédéric Péters 4c7c3902db misc: catch idna errors when validating email addresses (#20819) 2017-12-20 11:57:18 +01:00
Thomas NOËL eb7a8abf96 wscall: fix record/notify on app errors, use status_code instead of status (#20809) 2017-12-20 09:30:54 +01:00
Frédéric Péters 730ff3d694 backoffice: add assigned functions to inspect view (#17072) 2017-12-18 10:12:11 +01:00
Frédéric Péters 996fe47892 backoffice: add links to form and workflow pages from inspect view (#20755)
This changes title markup to use standard gadjo #appbar to have those
links right aligned next to the title.
2017-12-18 10:12:11 +01:00
Thomas NOËL ad6849f523 misc: accept only http and https as URL scheme (#20523) 2017-12-15 16:38:26 +01:00
Benjamin Dauvergne 1c3dabaeee test: make a fixture of HttpRequestMocking (#16509) 2017-12-15 16:37:52 +01:00
Frédéric Péters c45b8364bb backoffice: use {{ }} when displaying varnames (#20670) 2017-12-14 11:20:56 +01:00
Frédéric Péters ec145dbfc5 doc: update pages to always use django templates syntax (#20537) 2017-12-14 10:56:56 +01:00
Frédéric Péters 780d1f41ba backoffice: fix access to ics endpoint as a backoffice URL (#20676) 2017-12-14 10:56:56 +01:00