Commit Graph

90 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 0bc9c7e93c models: change regexp to authorize dots in mime-types
refs #3589
2013-09-11 12:22:28 +02:00
Benjamin Dauvergne ff43bcdf8b models: use app_settings.BASE_URL instead of setting.DOCBOW_BASE_URL 2013-09-09 18:00:53 +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 a1c77dc498 models: set minimum cardinality to 0 2013-08-30 15:25:07 +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 b421a5d71d admin: in Document listing, show attached files ordered by kind
refs #2920
2013-06-27 02:14:01 +02:00
Benjamin Dauvergne b71e6a83ff models: add field AttachedFile.kind
refs #2920
2013-06-27 02:13:35 +02:00
Benjamin Dauvergne a8aae06688 models: add model FileTypeAttachedFileKind
refs #2920
2013-06-27 02:12:30 +02:00
Benjamin Dauvergne 3ef5369a34 models: remove auto_now=True flag from Mailbox.date field 2013-06-27 00:08:12 +02:00
Benjamin Dauvergne 0304e15ce0 models: fix datetime handling to be timezone aware 2013-06-27 00:07:12 +02:00
Benjamin Dauvergne 2ee8242f8c clean unused imports 2013-06-25 13:53:39 +02:00
Benjamin Dauvergne 1047594809 models: add new field MailingList.is_active 2013-02-20 16:59:57 +01:00
Benjamin Dauvergne 2ec3842279 models: allows FileType.is_active to be False 2013-02-20 16:57:40 +01:00
Benjamin Dauvergne 006450652f views/forms: add a reply-to button 2013-02-20 15:38:52 +01:00
Benjamin Dauvergne 95df253632 models: add is_guest function 2013-02-20 11:31:31 +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 0dbe93f296 models/template: improve all email notifications templates
settings was already passed to notification templates, use it to get to
the ORGANIZATION variable.

New file to hold the signature of the platform were added.
2013-01-31 22:58:48 +01:00
Benjamin Dauvergne 21ce921301 models/templates: add an organization variable to the new-document notifications templates, fixes # 2013-01-31 16:56:50 +01:00
Benjamin Dauvergne 9bf7e704ca models: do not fail on timestamping errors, just log them 2013-01-31 15:34:51 +01:00
Benjamin Dauvergne 24228a4d56 models/forms: validate formatting of the mobile phone, fixes #2413 2013-01-30 14:01:38 +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 4a3e43d589 models: replace Delegation.guest_delegate by an attribute on DocbowProfile named is_guest 2013-01-28 01:49:50 +01:00
Benjamin Dauvergne ed2eb7e7d3 forms,models: add guest_users() and non_guest_users() methods
use them when needing to list guest and non guest users.
2013-01-23 19:31:14 +01:00
Benjamin Dauvergne a5441e09e2 models: record to which list user belong when posting 2013-01-18 14:50:17 +01:00
Benjamin Dauvergne 315871b8f2 models: fix DocumentForwarded.__unicode__ 2013-01-17 18:19:39 +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 1aeb1744d6 models: add an is_active field to FileType 2013-01-15 23:58:44 +01:00
Benjamin Dauvergne 781009babc models: add a model to hold deleted mailbox entries for delegates 2013-01-15 23:54:52 +01:00
Benjamin Dauvergne f670a3bb65 models: add __unicode__ to all models 2013-01-15 16:56:35 +01:00
Benjamin Dauvergne 2efdc8a08f admin: improve display of delegation objects 2013-01-15 16:51:08 +01:00
Benjamin Dauvergne a2d005b18b remove local implementation of PickledObjectField use the one from pypi 2013-01-15 14:22:18 +01:00
Frédéric Péters e4e6eaeee9 style fixes 2013-01-06 16:25:55 +01:00
Frédéric Péters 8c5fa1861d indentation fixes 2013-01-06 16:25:43 +01:00
Benjamin Dauvergne 1d9c871a67 models: changed max_lenth of field Notification.kind 2012-12-21 02:40:46 +01:00
Benjamin Dauvergne 676feab2d2 models: improved a docstring 2012-12-20 18:33:07 +01:00
Benjamin Dauvergne bdf10c9d2c models: added Notification.__unicode__ 2012-12-20 18:33:07 +01:00
Benjamin Dauvergne 54399353bc models: prevented creation of delegations with same user and delegate 2012-12-20 18:33:07 +01:00
Benjamin Dauvergne daf28ec36d models: added Notification.ctx field to hold additional template context 2012-12-20 18:33:06 +01:00
Benjamin Dauvergne 90a20ea5c0 signals: modified logging, use django_journal instead of logging 2012-12-19 22:03:13 +01:00
Benjamin Dauvergne b42f99dbd5 models: fixed python 2.6 compatibility 2012-12-19 17:34:04 +01:00
Benjamin Dauvergne 99c4539fda models: add a personal email field to the profile
Notifications will also be sent to this address.

fixes #1845
2012-12-16 10:36:35 +01:00
Benjamin Dauvergne a2a5757f40 models: documnt DocbowProfil, Notification and NotificationManager 2012-12-16 10:15:58 +01:00
Benjamin Dauvergne c80fb5ce9f models: automatically set and unset is_staff if an user is in some group
fixes #1971
2012-12-16 10:11:22 +01:00
Benjamin Dauvergne d27705fa2f models: added logging to journal of automatic forwarding rules execution 2012-12-16 09:53:07 +01:00
Benjamin Dauvergne be8dddf83f models: improved method AutomaticForwarding.__unicode__
It is more precise now.
2012-12-16 09:52:04 +01:00
Benjamin Dauvergne b7c9eadb1a models: moved timestamping before delivery for logic sake 2012-12-16 09:51:02 +01:00
Benjamin Dauvergne 9455805aa0 models: fixed typo 2012-12-14 15:46:47 +01:00
Benjamin Dauvergne f92bdba5fb models: model manager is not accessible from an instance 2012-12-14 15:45:42 +01:00
Benjamin Dauvergne b65a8b9f48 models: add method Document.url for procuding URL for documents in templates 2012-12-14 15:38:00 +01:00