Commit Graph

5968 Commits

Author SHA1 Message Date
Frédéric Péters 9da3ee9901 misc: recreate workflow form after submission, to get live items (#35903) 2019-10-22 11:13:36 +02:00
Nicolas Roche e8384beceb tests: check for live data sources in workflow forms (#35903) 2019-10-22 11:13:36 +02:00
Frédéric Péters 497d8d83d2 misc: always allow restoring drafts (#37107) 2019-10-22 09:50:25 +02:00
Frédéric Péters e7887d2b0f admin: don't refer to slug widget if it has not been added (#37102) 2019-10-21 22:50:07 +02:00
Frédéric Péters cd216c1ff4 translation update 2019-10-18 12:15:22 +02:00
Nicolas Roche 0085120f84 datasources: avoid raising on lost datasource (#18431) 2019-10-18 11:00:02 +02:00
Nicolas Roche 215209fb98 admin: protect datasources in use from deletion or slug change (#15163) 2019-10-18 10:57:06 +02:00
Frédéric Péters b876213f44 api: do not advertise all forms for backoffice submission to admins (#36988) 2019-10-18 10:52:57 +02:00
Nicolas Roche 7c02aac054 formdefs: exclude None values from get_formdefs_of_all_kinds list (#37058) 2019-10-18 10:51:33 +02:00
Frédéric Péters e9d53a2569 backoffice: don't try displaying status visibility for missing status (#37005) 2019-10-16 19:03:59 +02:00
Frédéric Péters f028c69cc5 tests: add test for autosave/items field (#36893) 2019-10-15 10:28:32 +02:00
Frédéric Péters bd44241b93 misc: access django POST using original unicode keys() (#36893) 2019-10-15 10:28:32 +02:00
Frédéric Péters e7ad4c2c0b workflows: migrate fields on load (#36915) 2019-10-14 22:22:18 +02:00
Nicolas Roche 12df99eaba formdefs: add function to get formdefs of all kind (#36865) 2019-10-14 13:47:34 +02:00
Nicolas Roche e7e34cd498 datasources: return 404 on unknown datasource (#36808) 2019-10-14 13:39:58 +02:00
Frédéric Péters 2b9bfd93c9 misc: convert old roles module location when unpickling (#36860) 2019-10-11 16:52:53 +02:00
Frédéric Péters 20cefcf12e fields: set empty datasource when "none" is selected (#36851) 2019-10-11 11:19:16 +02:00
Frédéric Péters 91087f529c backoffice: always display multi actions if roles are okay (#36760) 2019-10-09 13:02:04 +02:00
Frédéric Péters d3eb54b88c backoffice: fix display of mass actions set to functions with dashes (#36734)
Function slugs are used in data attributes but those are normalized,

  The name of a custom data attribute in JavaScript is the name of the
  same HTML attribute but in camelCase and with no dashes, dots, etc.

  -- https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/dataset

Prevent that by turning all dashes into underscores.
2019-10-09 11:39:36 +02:00
Frédéric Péters cf9a14411f misc: only use strings when recreating user label (#36781) 2019-10-08 15:03:44 +02:00
Frédéric Péters 160db73192 misc: display translated action name for notifications (#36762) 2019-10-08 11:29:25 +02:00
Frédéric Péters a6dfbcf669 sql: use publisher unpickler to unpickle sql data (#36697) 2019-10-06 09:24:05 +02:00
Frédéric Péters fdd25e474c translation update 2019-10-04 15:04:59 +02:00
Frédéric Péters 3a496d67c6 misc: add options to display/hide fields on validation/summary pages (#36505) 2019-10-04 14:54:10 +02:00
Lauréline Guérin c835c345bd
fields: render template for title and subtitle (#36620) 2019-10-04 14:38:27 +02:00
Emmanuel Cazenave a437f81087 jenkins: use ci@entrouvert.org for notifications 2019-10-02 15:57:24 +02:00
Emmanuel Cazenave d4600b2816 use tox to run tests (#15562) 2019-10-02 15:56:56 +02:00
Emmanuel Cazenave 564f96ab82 misc: PEP 440 compliant version number (#15562) 2019-10-02 15:56:07 +02:00
Frédéric Péters 776db6d218 misc: add possibility of internal roles (#36485) 2019-10-02 08:19:26 +02:00
Frédéric Péters bd7ae65c8e jenkins: limit attrs, for pytest 2019-10-02 08:19:20 +02:00
Frédéric Péters 6515fdff17 misc: ignore validation defined as regex but with no regex (#36442) 2019-10-01 13:47:28 +02:00
Frédéric Péters 59e506e86a misc: convert more import to be relative (#36566) 2019-10-01 13:38:48 +02:00
Frédéric Péters d50ce84406 misc: handle unpickling from classes that used absolute import (#36565) 2019-10-01 13:38:48 +02:00
Frédéric Péters 8b9c2f838e misc: use relative imports to get publisher in ctl command (#36517) 2019-09-30 15:08:00 +02:00
Frédéric Péters 1b1e596d1f misc: use relative imports (#36517) 2019-09-30 11:05:53 +02:00
Frédéric Péters f215eda29d python3: use six.class_types to check for classes (#36516) 2019-09-30 11:05:53 +02:00
Thomas NOËL 05173ccbfe admin: fix display of JSON data source dynamic parameters (#36511) 2019-09-29 15:22:08 +02:00
Thomas NOËL 66e1afc797 form: remove regex pattern on string widgets (#30419) 2019-09-27 16:54:23 +02:00
Frédéric Péters aa45dd1957 admin: display and use card default workflow when setting workflow (#36413) 2019-09-27 11:39:01 +02:00
Benjamin Dauvergne b8186bfb90 api: export Status.is_waitpoint() in schema (#36412) 2019-09-24 19:36:22 +02:00
Frédéric Péters fb9ed2bc3e fix typo in translation 2019-09-24 17:07:24 +02:00
Frédéric Péters 4728912d10 backoffice: move multi action checkbox after criticality/lock (#36342) 2019-09-23 11:59:56 +02:00
Frédéric Péters c00234973f misc: don't crash evaluating roles when formdef.workflow_roles is None (#36252) 2019-09-19 10:35:03 +02:00
Thomas NOËL 5a694524f3 translation update 2019-09-18 16:36:31 +02:00
Frédéric Péters 281b020996 backoffice: add checkboxes to run global actions on many items at once (#7865) 2019-09-18 15:48:00 +02:00
Frédéric Péters a3c3ec6b21 misc: add get_roles() accessor to user class (#7865) 2019-09-18 15:48:00 +02:00
Frédéric Péters 7f19df4992 misc: remove __version__ reference, served by middleware for long (#36219) 2019-09-18 12:02:45 +02:00
Frédéric Péters 510a02d416 translation update 2019-09-09 16:07:28 +02:00
Frédéric Péters f9358c5e96 cards: do not disable card after duplication (#35934) 2019-09-09 15:55:17 +02:00
Frédéric Péters d9d5fd2eed backoffice: create new comments as HTML (#35793) 2019-09-09 10:37:32 +02:00