Commit Graph

745 Commits

Author SHA1 Message Date
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
Benjamin Dauvergne 291f9d5dd4 models: inverse condition, fixes #3508 2013-08-29 13:43:40 +02:00
Benjamin Dauvergne d1fa32c2ba models: Request.copyright is only missing if diffusion is requested, fixes #3508 2013-08-29 13:38:05 +02:00
Benjamin Dauvergne 6207a4bcc7 request/views: in finish_remote_request() do not full_clean() unsaved request, only clean() them 2013-08-28 18:56:23 +02:00
Benjamin Dauvergne 27d792136f backends: really finish commit 53fa19b 2013-08-28 15:23:33 +02:00
Benjamin Dauvergne f791bad3af fix typo 2013-08-28 15:22:02 +02:00
Benjamin Dauvergne 53fa19b014 backends: in CASBackend convert attributes to unicode before transferring them into the User object 2013-08-28 15:20:27 +02:00
Benjamin Dauvergne fc8109ffaa request/views: use a unicode string as format template for unicode values 2013-08-28 14:35:44 +02:00
Benjamin Dauvergne 54e6b9830b request/forms: copyrights is only required when diffusion is asked
fixes #3227, #3053, #3229
2013-08-28 11:33:26 +02:00
Pierre Cros 1af068390c documentation update 2013-07-22 07:03:48 +02:00
Benjamin Dauvergne 200e88a431 remove debugging statements 2013-07-15 15:47:48 +02:00