Commit Graph

1004 Commits

Author SHA1 Message Date
Benjamin Dauvergne 76337ddad6 docbow: add new ODS export view for inbox and outbox
This commit includes code copied from w.c.s.

fixes #3621
2013-09-13 18:44:56 +02:00
Benjamin Dauvergne f659d02f99 utils: only take the most used extension for each mime-type 2013-09-13 11:56:22 +02:00
Benjamin Dauvergne 90ab28a292 forms: when creating delegation for existing users, emit errors, fixes #3570
- if the email is one of an existing simple delegation refuse to create
	 it,
 - if the email belong to existing normal users, list them and tell user
	 that it must use the combo box listing existing users,
 - if the email belong to the current user, tell him he cannot delegate
	 to himself.
2013-09-12 18:47:51 +02:00
Benjamin Dauvergne b8d207d037 views: remove repeating users in user recipients form fields when sending limitations are enforced, fixes #3572 2013-09-12 11:28:55 +02:00
Benjamin Dauvergne 739baa6388 forms: use threadind package for sending SMS in background thread, log exceptions 2013-09-12 10:35:32 +02:00
Benjamin Dauvergne 359f099e53 sms_carrier_ovh: restore import urllib 2013-09-11 18:51:34 +02:00
Benjamin Dauvergne 60730b8306 locale: fix typo
fixes #3597
2013-09-11 17:36:47 +02:00
Frédéric Péters 77b0cc9789 sync-from-tabellio: alter types to always start with a capital (#3592) 2013-09-11 17:11:55 +02:00
Benjamin Dauvergne 3fe8f31aa9 utils: read full file when trying do detect mime-type 2013-09-11 16:46:46 +02:00
Benjamin Dauvergne 628a1d01ec utils: read at least 10000 bytes from file for detecting content type 2013-09-11 16:44:49 +02:00
Benjamin Dauvergne abee690dcc sms_carrier_ovh: use urllib2 which correctly handle https proxies 2013-09-11 16:04:24 +02:00
Benjamin Dauvergne a997886429 docbow: add minimum number of files limitation to FileTypeAttachedFileKind model
fixes #3588
2013-09-11 13:29:05 +02:00
Benjamin Dauvergne c725f50c81 views: pass the delegate user as user to the send file form when a guest delegate is sending
fixes #3590
2013-09-11 12:59:11 +02:00
Benjamin Dauvergne 2389b49ca9 tables,locale: explicitely declare the string "self" for translation and restore its translation
ref #3590
2013-09-11 12:29:48 +02:00
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
Frédéric Péters b01a1e0539 add a real description for init script 2013-09-11 10:23:02 +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 ac2323b857 forms: do not clobber the user_qs keyword argument
fixes #3572
2013-09-10 19:37:41 +02:00
Frédéric Péters c365f1a6aa sync-tabellio: sync document types (#3544) 2013-09-10 16:55:06 +02:00
Frédéric Péters 696054321b move sync-tabellio to the pfwb application 2013-09-10 09:46:14 +02:00
Frédéric Péters 4d7c688459 doc: document tabellio synchronisation settings 2013-09-10 09:45:20 +02:00
Frédéric Péters bfae035913 doc: fix underlining length 2013-09-10 09:42:25 +02:00
Frédéric Péters 03a7b1415f sync-tabellio: add a bunch of comments 2013-09-10 09:41:00 +02:00
Frédéric Péters 89a8a7e9d7 sync-tabellio: comment translation 2013-09-10 09:41:00 +02:00
Benjamin Dauvergne cecd8c30d3 pfwb: overload docbow command sendmail()
This command handle specificities about the handling of incoming emails
at the PFWB. It uses six new special application settings.

The loading order of the pfwb application was changed as you can only
overload a command from a previously loaded application.

ref #3542
2013-09-09 22:50:23 +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 a61dc44c24 docbow: fix typo error in import path in the sendmail command 2013-09-09 18:00:42 +02:00
Benjamin Dauvergne 9f9df45b43 settings: remove duplicate entry 2013-09-09 16:24:24 +02:00
Frédéric Péters c6bd9f7735 sync-tabellio: create and sync mailing lists for political groups (#3545) 2013-09-09 13:16:39 +02:00
Frédéric Péters ddadfa65a7 settings: remove duplicated DOCBOW_BASE_URL 2013-09-09 13:06:56 +02:00
Benjamin Dauvergne 8ec434ed24 settings: define default BASE_URL for the PFWB 2013-09-09 11:22:26 +02:00
Benjamin Dauvergne 1bc81386d6 docbow/app_settings: introduce a BASE_URL setting, use it in sendmail 2013-09-09 11:21:55 +02:00
Benjamin Dauvergne e35f26d4b4 pfwb/models: add new model TabellioDocType 2013-09-09 11:17:32 +02:00
Benjamin Dauvergne b7d2b0cace pfwb: initialize migrations 2013-09-09 11:15:15 +02:00
Benjamin Dauvergne 73d5fe9526 rename application plone to pfwb
It will hold all adaptation to pfwb context
2013-09-09 10:41:41 +02:00
Benjamin Dauvergne c6a5c34d70 tables: add a recipients column to outbox table (CSV and HTML) 2013-09-06 09:28:28 +02:00
Pierre Cros 46551e97e0 Suppression du développement de l'acronyme DocBow sur la page d'accueil 2013-09-05 17:48:23 +02:00
Frédéric Péters 600363b798 create accounts as first.lastname, not the other way 2013-09-05 14:49:20 +02:00
Frédéric Péters 3871abce8f add management command to sync users with tabellio 2013-09-05 14:41:11 +02:00
Benjamin Dauvergne 7d4b313b54 commands/add_user,commands/add-list: fix wrong access name for command flags, add flags for activating deactivating users, and for setting the is_superuser field
fixes #3534
2013-09-04 15:56:37 +02:00
Benjamin Dauvergne 21b99f1a1b commands/list-users: add columns for the is_active and is_superuser flags 2013-09-04 15:56:03 +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 5880747208 utils: add method to convert date to aware datetime set at 00:00 2013-09-04 12:41:56 +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 f564f43f40 setup.py,requirements.txt: change name of disitribution for python-entrouvert 2013-09-03 16:35:47 +02:00
Benjamin Dauvergne f14f8a6458 docbow.init: add more environment variable when calling management commands 2013-09-03 15:10:44 +02:00
Benjamin Dauvergne 3d9fe34dd7 docbow.init: the -- must precede the command but be after the environment variables declarations 2013-09-02 12:05:09 +02:00
Benjamin Dauvergne 20415669b7 docbow.init: conserve some environment variable when calling sudo 2013-09-02 12:02:55 +02:00
Benjamin Dauvergne c5601cc34d docbow.init: use sudo instead of su 2013-09-02 11:59:16 +02:00