Benjamin Dauvergne
28243bf147
request: accept jpg files
...
fixes #4027
2014-01-23 15:17:02 +01:00
Benjamin Dauvergne
db9ff766f4
requirements.txt: use released versions of python-entrouvert
2014-01-23 15:01:36 +01:00
Benjamin Dauvergne
921dfdb613
requirements.txt: reuse the main branch of django-cas
2014-01-20 22:23:13 +01:00
Benjamin Dauvergne
230f95ffb6
base/backends: adapt to new return value of CASBackend._verify
2014-01-20 22:17:55 +01:00
Benjamin Dauvergne
31763c84bb
requirements: use a fork of django-cas compatible with Django 1.5
2014-01-20 21:29:31 +01:00
Benjamin Dauvergne
56d25f9e15
fix pyPdf downloda URL to work around pip 1.5 new policy
2014-01-20 21:22:42 +01:00
Benjamin Dauvergne
0de0bd4c23
request/utils: catch exceptions when reading PDF files
2014-01-20 17:15:38 +01:00
Benjamin Dauvergne
32a8a2fe31
revert to django-ajax-select 1.2.5, later version does not work anymore with our versions of jQuery
2014-01-20 16:34:15 +01:00
Benjamin Dauvergne
5e35a2cc57
templates: remove superfluous link to media files (vis)
2014-01-20 16:21:44 +01:00
Benjamin Dauvergne
55c1a3f882
templates: remove superfluous link to media files
2014-01-20 16:20:43 +01:00
Benjamin Dauvergne
a0bc66e434
fix typo
2014-01-20 16:01:10 +01:00
Benjamin Dauvergne
c6caee3bbe
update requirements
2014-01-20 16:00:40 +01:00
Benjamin Dauvergne
90140091c4
request/views: fix module path for ContentFile class
2014-01-20 09:52:02 +01:00
Benjamin Dauvergne
a0e0b69071
base/models/entity: return the current entity if no parent of the right level is found
...
refs #4015
2014-01-20 09:33:51 +01:00
Benjamin Dauvergne
9a4e653735
request/views: in request_duplicate, duplicate uploadfile manually to not share the same file between the original and duplicate instances
2014-01-17 16:17:00 +01:00
Benjamin Dauvergne
a1fda2a7a1
use setuptools entrypoints to load plugins
2014-01-14 18:14:37 +01:00
Benjamin Dauvergne
fba08e4a5d
request/templates: fix URL of static files from the ajax-select application
2014-01-14 18:13:54 +01:00
Benjamin Dauvergne
18e1c09107
base/models: add a parent_of_type() method to Entity
...
This method returns the first parent of type type_name.
2014-01-14 18:11:54 +01:00
Benjamin Dauvergne
d652d7d9a2
request/utils: end of commit d70454eb9
...
previous commit only fixed the issue for remotely posted files
refs #4119
2014-01-14 18:11:00 +01:00
Benjamin Dauvergne
2990699432
models: enlarge Document.uploadfile to 512 characters
...
fixes #4152
2013-12-18 11:20:00 +01:00
Benjamin Dauvergne
5a4905408f
request: unplug the unworking FileField validator
2013-12-16 23:02:14 +01:00
Benjamin Dauvergne
d70454eb9f
request/utils: try to decrypt encrypted Pdf files with the empty password
...
PDF is using encryption as an obfuscation technique. Most protected PDF
files are just encrypted with the null pasword. We now firs try to
decrypt them before acknowledging that the file is really encrypted.
fixes #4119
2013-12-16 17:20:52 +01:00
Benjamin Dauvergne
74538b1402
settings: only use the TemporaryFileUploadHandler
2013-12-16 15:28:24 +01:00
Benjamin Dauvergne
8a6274b9b7
request/validators: fix missing imports
2013-12-16 14:50:51 +01:00
Benjamin Dauvergne
f7dbf45f85
backend: populate user profile phone field in CASBackend.populate_from_ldap()
...
refs #4016
2013-12-02 23:29:39 +01:00
Benjamin Dauvergne
c9c934560b
templates: in request_detail.html show service or composante of the entity when possible
...
fixes #4015
2013-12-02 19:26:08 +01:00
Benjamin Dauvergne
89a64a8796
models: add method Entity.level1_parent to retrieve the service or composant of an UE if there is one
...
refs #4015
2013-12-02 19:26:08 +01:00
Benjamin Dauvergne
497732e314
models: in method PolynumUser.display_name() strip full name before testing for emptyness
2013-12-02 19:26:08 +01:00
Benjamin Dauvergne
e90d2ba214
models: add phone field to the PolynumProfile model
...
refs #4016
2013-12-02 19:26:08 +01:00
Benjamin Dauvergne
6b94876773
templates: in request_detail.html show validator
...
fixes #4016
2013-12-02 16:22:33 +01:00
Benjamin Dauvergne
806c7444ad
models: add special action type "show_in_details" to show author of this actin in request details
...
refs #4016
2013-12-02 16:15:59 +01:00
Benjamin Dauvergne
89d505dc85
models: add method HistoryManager.last_show_in_details() to report last validators
...
It reports the last user which did an action with the special flag
'show_in_details'.
refs #4016
2013-12-02 16:14:56 +01:00
Benjamin Dauvergne
cb53ed6538
requests: fix accessor on the nb_pages field
...
fix bug introduced in commit f49d3d4a66
2013-12-02 16:13:23 +01:00
Benjamin Dauvergne
866714b48d
clean unused imports
2013-12-02 15:28:03 +01:00
Benjamin Dauvergne
0dd0a93da3
update dependencies
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
672d8a9b27
views: limit frequent values to 15 suggestions
...
fixes #4031
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
35370525b2
request/validators: add a new default validator for form's FileFields
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
8c5df6b39e
request/views: in RequestWizardView.post(), save m2m fields if there are some
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
59e6f500f6
request/views: in the render_next_step() method, only save if the form is valid
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
6bc199ad43
remove commit_on_success(), and add it to post hadler of the wizard where it is needed
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
cb23cceb28
add raven to dependencies
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
87af9df45a
settings: activate south with sqlite if FORCE_SOUTH is defined in the environment
2013-12-02 15:25:25 +01:00
Benjamin Dauvergne
fca12ab15e
request/forms: show error message when delivery_date is None
...
fixes #4005
2013-11-28 14:04:26 +01:00
Benjamin Dauvergne
85199282e0
add no_dry_run = True to data migrations
2013-11-22 11:37:38 +01:00
Benjamin Dauvergne
5d473331ae
base/models: make a text field
2013-11-22 11:35:30 +01:00
Benjamin Dauvergne
6b3db4615a
models/request: when computing the month order, lock on the counted rows
...
fixes #3730
2013-11-22 11:28:58 +01:00
Benjamin Dauvergne
f49d3d4a66
models: add accessors returning only integers for the field nb_pages and copies as they can be NULL
2013-11-15 15:45:56 +01:00
Benjamin Dauvergne
79307fbd88
utils: fix invalid subscript
2013-09-05 18:52:48 +02:00
Benjamin Dauvergne
09136ed3fb
utils: shrink document name to 60 characters when prefilling
2013-09-05 16:47:37 +02:00
Benjamin Dauvergne
80bcff4730
settings: install middleware UserInTraceback from python-entrouvert
2013-08-30 14:26:08 +02:00