Commit Graph

2177 Commits

Author SHA1 Message Date
Benjamin Dauvergne d93f4f660d admin/translations: add a text area to translate any message 2014-01-13 14:33:55 +01:00
Benjamin Dauvergne 7a41c6ce25 publisher: use local translation before default translations 2014-01-09 17:45:40 +01:00
Benjamin Dauvergne 040afeecda admin: add a custom translations setting page
It allows overriding default translations from the admin.
2014-01-09 17:44:38 +01:00
Benjamin Dauvergne 3eb3755ecd admin/texts: add support for custom localized text templates 2014-01-09 13:08:14 +01:00
Benjamin Dauvergne 9d8ad3513c remove debugging statements 2014-01-09 13:07:47 +01:00
Benjamin Dauvergne 6ffe3d38f4 utils: add utility functions for managing current language 2014-01-09 12:20:14 +01:00
Benjamin Dauvergne 607380efb7 admin/emails: add support for custom localized mail templates
lignes
2014-01-09 00:07:14 +01:00
Benjamin Dauvergne 12b908310a load translations from local directory if not found globaly 2014-01-08 23:37:59 +01:00
Benjamin Dauvergne 28626d887b organize files to serve as a submodule of authentic1 2013-11-06 14:02:24 +01:00
Thomas NOËL c9185caa87 factored code to reuse get_rst_view_value in detailed_email
Correct this bug: eval(data[field.id]) could crash when data[field.id] was not
a string. This is the case on multipage forms, when formdata.data contains
boolean values instead of string ('True' or 'False').
2011-08-19 14:57:40 +00:00
Thomas NOËL f69ca38d01 substitution vars: replace appname_ with env_ 2011-08-04 12:06:09 +00:00
Thomas NOËL 8af3b3b679 typo 2011-08-04 09:41:25 +00:00
Thomas NOËL bf9777ee50 export wcs_* env. vars to substition vars 2011-08-03 15:37:12 +00:00
Thomas NOËL d7cbeb627e don't export misc in substitutions vars (really) 2011-08-03 12:33:51 +00:00
Thomas NOËL 8797f83429 don't export misc in locals 2011-08-03 12:08:45 +00:00
Thomas NOËL b3eff836a3 optionnally import id of fields to xml, this is used for user fields
(really) fix #214 http://dev.entrouvert.org/issues/214
2011-08-02 15:59:51 +00:00
Thomas NOËL 43ade21318 update french translation
- substitution variables
- export to model
2011-08-02 14:09:11 +00:00
Thomas NOËL 14aa8ff0fd prefill with a formula 2011-08-02 10:52:07 +00:00
Thomas NOËL 4da41a2b3b Feed substitution vars for workflows. Add form_uri
fix #634 http://dev.entrouvert.org/issues/634
2011-08-01 14:04:02 +00:00
Thomas NOËL 453b76a537 add name param in comment_user email (legacy workflow) 2011-07-04 15:30:20 +00:00
Thomas NOËL 67a3c35d83 captchas are always required 2011-07-04 11:48:42 +00:00
Benjamin Dauvergne 9d93cd3a3a Fix missing module dereferencing in commit ee82088 2011-07-04 09:04:04 +00:00
Benjamin Dauvergne 8b049d617b In FormDef.get_detailed_email_form skip non-input fields
Skipped field classes are: TitleField, SubtitleField, PageField and
CommentField.

Those classes do not have a working get_rst_view_value method, it breaks
the logic of get_detailed_email_form.
2011-07-04 08:46:42 +00:00
Frédéric Péters 82cd801a7f Add substitution variables to legacy workflow 2011-07-04 08:37:31 +00:00
Thomas NOËL 7c6685c6c6 can use a translation object for the given language and the current site (app_dir)
written by Benjamin Dauvergne
fix #477
2011-06-29 13:38:11 +00:00
Frédéric Péters 7853eaa1ca Do not let cron fail on errors around prctl 2011-06-27 09:57:45 +00:00
Frédéric Péters bd4d3b4519 Add support for substitution variables to workflows.
- This allows variables to be used in exported models (#465)
- This allows access to the previous status in emails (#447)
- This allows a workflow field to reference a form field (#248)
- This allows a workflow field to reference a user field (#249)
2011-06-27 08:49:29 +00:00
Frédéric Péters 32584ce182 add substitution variables for formdata 2011-06-24 11:21:39 +00:00
Frédéric Péters 927e26e78f Add possibility to download a theme 2011-06-24 08:19:00 +00:00
Frédéric Péters 7ff8cabfcc Properly reset substitutions on new requests 2011-06-21 21:11:57 +00:00
Frédéric Péters 19d255dcf7 Add substitution variable for formdef name 2011-06-21 21:10:05 +00:00
Benjamin Dauvergne ce3445577d Update french translation
Closes 465
2011-06-21 20:08:44 +00:00
Benjamin Dauvergne 8570091455 Fix rtf unicode formatting, it failed when string replacement started with a digit 2011-06-21 20:08:36 +00:00
Benjamin Dauvergne 5859acd964 Comply with wcs style for supper calls 2011-06-21 20:08:31 +00:00
Benjamin Dauvergne eefdb17afb Do not show extra variables in ExportToModel workflow settings 2011-06-21 20:08:21 +00:00
Benjamin Dauvergne 372bc5be24 Set a value on the model_file field of the ExportToModel settings form 2011-06-21 20:08:15 +00:00
Benjamin Dauvergne 290221c526 Add the possibility to keep the actual value to the UploadWidget
It looks ever-more like FileWithPreviewWidget, but I'm a bit afraid to
touch this one; seems there is a lot of legacy around it that I would
not want to break.
2011-06-21 20:08:09 +00:00
Benjamin Dauvergne aee0f8e5fe Move list of additional variable near template_on_formdata where they are defined in workflows.py 2011-06-21 20:08:04 +00:00
Benjamin Dauvergne baf48ee3bd Change parent class of TemplatingError for qommon.errors.PublishError 2011-06-21 20:07:59 +00:00
Benjamin Dauvergne b83dde334f In ExportToModel workflow, for model_file attribute, check the content type first before checking the file extension
Also test if base_filename is not None.
2011-06-21 20:07:55 +00:00
Benjamin Dauvergne ac72dfb6f5 Add validation of the file extension for model files, only RTF is accepted for now 2011-06-21 20:07:50 +00:00
Benjamin Dauvergne 85c90d1461 In the ExportToModel workflow, show normal message for an absent model file 2011-06-21 20:07:45 +00:00
Benjamin Dauvergne 0d0c5122ea In the ExportToModel workflow item, better report errors during templating 2011-06-21 20:07:41 +00:00
Benjamin Dauvergne e1ffc483fb Use base_filename and not orig_filname which does not exist anymore in apply_template_to_formdata 2011-06-21 20:07:36 +00:00
Benjamin Dauvergne 964c3e941d Rename last occurence of ExportToModel.model attribute (bis) 2011-06-21 20:07:27 +00:00
Benjamin Dauvergne eff0600970 List also variables added by template_on_formdata 2011-06-21 20:07:22 +00:00
Benjamin Dauvergne bc531fcd63 Do now show non input fields in the list of available variables for model files 2011-06-21 20:07:17 +00:00
Benjamin Dauvergne afcde76dbf Show button name of the WorkflowStatusItem instead of a the item genereic description 2011-06-21 20:07:13 +00:00
Benjamin Dauvergne 7aa219091e Verify that workflow_options is not None before indexing it 2011-06-21 20:07:07 +00:00
Benjamin Dauvergne cdaa71280c Rename last occurence of ExportToModel.model attribute 2011-06-21 20:07:03 +00:00