Commit Graph

113 Commits

Author SHA1 Message Date
Benjamin Dauvergne 78ac477e6e models,views: compute limitations by unioning with limitations from delegators
Only if the delegate had no limitation before the delegation, then no
limitation is applied to him.

fixes #3587
2013-09-11 12:22:28 +02:00
Benjamin Dauvergne 7cf9c2dcdf views: when computing user list after limitations, ignore inactive users 2013-09-10 19:37:41 +02:00
Benjamin Dauvergne f3cdb2c626 views: when filtering by date the end date is inclusive, fixes #3442 2013-09-04 12:42:18 +02:00
Benjamin Dauvergne 92ad7b13a4 models,views: take the union of sending limitations applying to an user, not the first one found
It also handles recursive group membership.

fixes #3465
2013-09-03 16:59:54 +02:00
Benjamin Dauvergne 8b2cd6d5e4 replace matching of file extensions by use of libmagic to identify file types
fixes #3189
2013-08-27 17:20:03 +02:00
Benjamin Dauvergne 7ff47aa277 remove legacy mailbox rendering code 2013-08-26 11:17:10 +02:00
Benjamin Dauvergne 861465c597 restore limitations on filetypes, fixes #3439
As filetype are now chosen on a separate page, the filetype limitation
code was broken. This commit implements limitations on the selection
page and enforce the validation on the sending page, redirecting the
user to the selection page if it tries to use a forbidden filetype.
2013-08-15 15:14:26 +02:00
Benjamin Dauvergne 50602c1d51 profile_views: add a FullProfileView which multiplex all other profile views
A bit ugly, but it keeps old views as is if we ever need them again.

refs #2922
2013-06-30 02:04:38 +02:00
Benjamin Dauvergne 639687e06f profile_views: reimplement password change view as a class based view
refs #2922
2013-06-28 16:52:50 +02:00
Benjamin Dauvergne 55ec056a4c profile_views: reimplement delegation management as class based view
refs #2922
2013-06-28 16:52:43 +02:00
Benjamin Dauvergne 170020a21c split upload form in two, group uploaded files by kind
refs #2920
2013-06-27 02:15:17 +02:00
Benjamin Dauvergne 718c7615e0 allow sorting listing through column headers, filtering by date range and exporting as CSV
this commit adds django-tables2 as a dependency

fixes #2923
2013-06-27 00:07:20 +02:00
Benjamin Dauvergne ec5d5d40e0 views: move all views into the docbow application 2013-06-25 13:53:40 +02:00
Benjamin Dauvergne 2ee8242f8c clean unused imports 2013-06-25 13:53:39 +02:00
Benjamin Dauvergne 7ecf2c52ac limit usable mailing list to active ones everywhere, allow editing the is_active field in the admin 2013-02-20 17:07:07 +01:00
Benjamin Dauvergne f7a9650ffa add link to document on reply rows of listing 2013-02-20 15:38:52 +01:00
Benjamin Dauvergne 3fbc95b4c7 views: show replies to received documents 2013-02-20 15:38:52 +01:00
Benjamin Dauvergne 006450652f views/forms: add a reply-to button 2013-02-20 15:38:52 +01:00
Benjamin Dauvergne 04d5b8e684 views/forms: do not show user which already have a delegation in existing users listing 2013-02-20 14:16:23 +01:00
Benjamin Dauvergne 01828bf0e6 views/forms: exclude current user from existing user listing in the delegation form 2013-02-20 14:14:16 +01:00
Benjamin Dauvergne b5433c0103 forms/views: adapt forwardingform for delegate accounts 2013-02-20 13:59:35 +01:00
Benjamin Dauvergne 6ca73dbb60 views/forms: handle default sender for documents in the FileForm 2013-02-20 11:38:34 +01:00
Benjamin Dauvergne 33bf565bdc templatetags: do not show delegation view to guest accounts 2013-02-20 11:38:06 +01:00
Benjamin Dauvergne e9d81a3356 add columns to show real sender, official sender and official recipient
refs #2437
2013-02-20 11:12:54 +01:00
Benjamin Dauvergne 2a787c4cb1 profile: add a "clear sms alert" button 2013-02-19 18:11:25 +01:00
Benjamin Dauvergne e2f788ed67 templates: in the new delegation message, do not try to follow relation as the user can already have been deleted 2013-02-19 15:45:37 +01:00
Benjamin Dauvergne f72ded2eea views: fix message for new guest delegates, refs #2424 2013-02-07 17:19:03 +01:00
Benjamin Dauvergne d4738c5805 views: do not show empty lists on the mailing lists page 2008-02-03 00:07:23 +01:00
Benjamin Dauvergne 86428d1961 views: do not let browsers cache page for logged in users, fixes #2421 2013-02-05 13:54:14 +01:00
Benjamin Dauvergne fe1ee463f0 change module name for decorators 2013-02-05 13:54:01 +01:00
Benjamin Dauvergne ce31f38d7d views: when creating a delegate from an existing email extract notification emails from the user not the form, fixes #2417 2013-01-30 01:00:43 +01:00
Benjamin Dauvergne 5ff132e192 remove debugging statements 2013-01-28 21:51:50 +01:00
Benjamin Dauvergne 4a3e43d589 models: replace Delegation.guest_delegate by an attribute on DocbowProfile named is_guest 2013-01-28 01:49:50 +01:00
Benjamin Dauvergne 737d726205 views: remove all user of transaction.commit_on_success
We use the Transaction middleware now.
2013-01-23 19:31:39 +01:00
Benjamin Dauvergne 01c1e2bf88 views: remove debugging statement 2013-01-23 18:02:43 +01:00
Benjamin Dauvergne f9ab1bcf6c views: override the user argument in request.record, when logging delegate actions 2013-01-18 14:24:17 +01:00
Benjamin Dauvergne 40fa0c568f views: prevent testing for empty sender to raise DoesNotExist exception 2013-01-18 13:51:35 +01:00
Benjamin Dauvergne dddb29c1a0 views: enable forwarding for everybody 2013-01-17 19:05:50 +01:00
Benjamin Dauvergne 0085518029 views: add logic to send document as another person 2013-01-17 15:57:54 +01:00
Benjamin Dauvergne 9d80245b7f views: provide deletion to message shown for a delegation 2013-01-17 14:03:19 +01:00
Benjamin Dauvergne 2ef5c92743 models/views: limit choices of filetype to active ones (fixes #2343) 2013-01-16 00:08:26 +01:00
Benjamin Dauvergne 36e68a41af views: display delegators messages 2013-01-15 23:52:03 +01:00
Benjamin Dauvergne 35c03666f3 remove unused import 2013-01-15 22:59:18 +01:00
Benjamin Dauvergne 9a0c068ffb views: fix get_file_form_kwargs if there is more than one list 2013-01-15 14:39:13 +01:00
Benjamin Dauvergne 3c5716714d Revert "views: temp fix to help pages"
This reverts commit 987f09bcdf.
2013-01-15 08:47:09 +01:00
Benjamin Dauvergne 987f09bcdf views: temp fix to help pages 2013-01-14 17:25:50 +01:00
Benjamin Dauvergne bc3f6e16a6 views: optimize listing 2013-01-14 16:53:10 +01:00
Benjamin Dauvergne dc1761b187 views: add missing tag to record call 2013-01-14 16:40:45 +01:00
Benjamin Dauvergne 1fcc819b0e views: show received delegations 2013-01-14 16:37:04 +01:00
Benjamin Dauvergne 9006189b2a views: allow delegate to see message from the delegator 2013-01-14 15:27:41 +01:00