Benjamin Dauvergne
3e03e69ba3
Add a link under the file widget to retrieve the current model file
2011-06-21 20:06:55 +00:00
Benjamin Dauvergne
5d5099f473
Rename ExportToModel.model attribute to model_file
2011-06-21 20:06:47 +00:00
Benjamin Dauvergne
d11f62f630
Does not keep a copy of the Upload.orig_filename attribute in UploadedFile objects
2011-06-21 20:06:42 +00:00
Benjamin Dauvergne
5f1ee74620
Remove initialization of filename with a callable in UploadedFile
2011-06-21 20:06:38 +00:00
Benjamin Dauvergne
23a739bba9
Use mkstemp in UploadedFile.__init__ to generate the filename
2011-06-21 20:06:33 +00:00
Benjamin Dauvergne
e27a69c169
Improve variable names listing under the Model upload field
...
Only one name is given for each field, the var_<variable> kind if there
is one, the f<id> otherwise. For each variable the label of the
corresponding field is shown.
2011-06-21 20:06:28 +00:00
Benjamin Dauvergne
dae48245e7
Improve UI messages
2011-06-21 20:06:22 +00:00
Benjamin Dauvergne
c14319ef24
Employ the new filename parameter of UploadWidget in ExportToModel workflow item
2011-06-21 20:06:18 +00:00
Benjamin Dauvergne
633149550b
Simplify choice of filename for saving in UploadFile
...
Generating a unique filename each time will make for too much orphan
files on the long run.
By default we keep the filename sent if there is one else we generate a
unique one.
Else if a filename string parameter is passed it is used as the
filename.
Finally if a callable filename parameter is passed, it is called with
the Upload object as argument and the result is used as the filename.
2011-06-21 20:06:11 +00:00
Benjamin Dauvergne
76884e26e5
Remove unused import
2011-06-21 20:06:06 +00:00
Benjamin Dauvergne
5991025138
Add special treatment for unicode encoding in RTF files
2011-06-21 20:06:02 +00:00
Benjamin Dauvergne
20e4de8d0c
Factorize templating in workflows actions using template_on_formdata()
2011-06-21 20:05:52 +00:00
Benjamin Dauvergne
e078d9fce7
Add ExportToModel workflow status item
2011-06-21 20:05:47 +00:00
Benjamin Dauvergne
17f62c6977
Add a widget which automatically store uploaded files, Django inspired
...
The widgets takes care of storing the uploaded file to a directory
inside the <app_dir> (by default <app_dir>/uploads) and returns an
object containing metadata about the upload but not the content. A
get_file() method on this returned object allows to access the content
of the file.
2011-06-21 20:05:42 +00:00
Benjamin Dauvergne
49ba3679f1
Add an optional formdef parameter to WorkflowStatusItem.add_parameters_widgets
...
It is defined when the using parametric workflow status item. It allows
to adapt the workflow options form to the a specific; it could be used
for example to list specific form fields in a combobox instead of asking
to input a field id.
2011-06-21 20:05:37 +00:00
Benjamin Dauvergne
1ed93050a8
Add method to compute possible variable names for a form
2011-06-21 20:05:33 +00:00
Frédéric Péters
de1e3d6ebd
Export substitution variables from user
2011-06-21 16:37:06 +00:00
Frédéric Péters
ac15e25f2e
Add now/today substitution variables
2011-06-21 15:01:19 +00:00
Frédéric Péters
064afd7e89
Add date & time substitution variables
2011-06-21 14:53:56 +00:00
Frédéric Péters
7d908493d8
First step in generalizing access to substitution variables
2011-06-21 14:29:10 +00:00
Frédéric Péters
e5f15c7494
completed translations
2011-06-20 11:18:42 +00:00
Thomas NOËL
50cac65b63
fix a bug with Editable workflow item (typo)
2011-06-10 21:52:27 +00:00
Thomas NOËL
73149497d2
set(None) does not work with recent Python
2011-06-10 21:51:29 +00:00
Frédéric Péters
2b22ad4edc
do not include forgotten password page on the login page ( #343 )
2011-06-10 08:33:50 +00:00
Benjamin Dauvergne
0cf9568ae1
Fix bad C-ism
2011-06-09 10:03:08 +00:00
Benjamin Dauvergne
6e1c03f34b
Do not use mime/multipart when possible
...
When sending a mail with only one part (mainly a text/plain one without
an HTML version and and any attachment), do not use a mime/multipart
message.
2011-06-07 15:28:04 +00:00
Benjamin Dauvergne
2ae2552da7
Override python default of encoding UTF-8 mails as base64
2011-06-07 15:11:22 +00:00
Thomas NOËL
7a6f1030f5
really simplify captchas (ooops..)
2011-06-07 09:48:40 +00:00
Thomas NOËL
2a45cad283
disable complex arithmetic operations in captchas
2011-06-07 09:40:53 +00:00
Benjamin Dauvergne
311c27abbc
Update duration hint text in the TimeoutJump workflow item settings
2011-06-04 20:44:29 +00:00
Benjamin Dauvergne
b38ef8460f
In TimeoutJump workflow item, improve hint message for the timeout duration field
2011-06-04 20:44:18 +00:00
Frédéric Péters
cd84a291a4
do not fail on empty expiration time
2011-05-31 21:20:10 +00:00
Benjamin Dauvergne
95b687ac48
Remove redundant code in SendmailWorkflowStatusItem
2011-05-27 14:20:43 +00:00
Frédéric Péters
178ac15747
add include_id to FormDef.export_to_xml, passed to FieldDef.export_to_xml
2011-05-25 13:07:44 +00:00
Thomas NOËL
cdaa6084f2
Updated French translation
2011-05-19 12:33:39 +00:00
Thomas NOËL
8c44b5e5a7
"always advertise" forms
...
refs #112
2011-05-17 11:59:15 +00:00
Thomas NOËL
623e17a9cb
typo
2011-05-17 09:50:48 +00:00
Benjamin Dauvergne
7e9f4154bb
Use python-vote-core to implement a « vote » field
...
Most of the code is copied from the old vote/ranked_items.py
implementation apart from the stats() method which is rewritten to use
the library python-vote-core
(http://pypi.python.org/pypi/python-vote-core/ ).
Implemented voting methods are:
- Condorcet / Schulze
- Condorcet / Ranked-Pairs
- Instant Run-Off
- Schulze Proportional Ranking
- Schulze Single Transfer Vote
- Schulze NPR
Some of them take parameters (number of winners, winner threshold). I'm
not sure of their interpretation so the best is to lookup the Wikipedia
article to know more.
Intermediate statisctics are reported, like when there is
multiple-rounds tally to find a winner.
« pip install python-vote-core » is necessary to use this extension.
2011-05-12 22:24:11 +00:00
Frédéric Péters
ab79f9572d
optionnally export id of fields to xml, this is used for user fields ( #214 )
2011-05-09 13:35:41 +00:00
Frédéric Péters
d5cee39c2d
use get_publisher, not get_publisher_class
2011-05-09 11:58:19 +00:00
Frédéric Péters
2dd4c147b5
use get_publisher, not get_publisher_class, to get user class
2011-05-08 18:08:06 +00:00
Frédéric Péters
987b936e83
use get_publisher to get to user_class
2011-05-06 14:17:47 +00:00
Frédéric Péters
42bef8e5ef
do now allow duplicated user fields when prefilling
2011-05-06 13:07:09 +00:00
Thomas NOËL
fc0279eb38
a disabled formdef can be a HTTP redirect
2011-05-03 14:32:49 +00:00
Frédéric Péters
df4e1cb5d2
do not use get_publisher_class in places we know there's a publisher object
2011-05-02 12:21:52 +00:00
Frédéric Péters
3a8b1351df
make sure user_class as defined in the publisher is used in relevant places
2011-05-02 11:51:39 +00:00
Benjamin Dauvergne
9e56f530c1
Work-around deprecation warning for module sets in python 2.6
2011-05-02 07:58:33 +00:00
Frédéric Péters
014b7d6b7e
move html_top calls for TextsDirectory to be an object method
2011-04-30 13:13:33 +00:00
Frédéric Péters
d019343034
Updated French translation
2011-04-30 11:38:41 +00:00
Frédéric Péters
0bdd4c5400
better default email for new generated password email
2011-04-30 11:37:31 +00:00