Commit Graph

489 Commits

Author SHA1 Message Date
Benjamin Dauvergne e55656828e PasswordResetForm: add support for usernames as well as emails
the email fiels is hidden, and a clean_identifier() copying functionality of the
existing clean_email() method is added.

Closes #642
2011-08-23 15:45:23 +02:00
Benjamin Dauvergne d57c5d6cec PasswordResetForm: fix logging of sent password reset mails 2011-08-23 15:42:45 +02:00
Benjamin Dauvergne bda5d49721 FileForm: when there is only one recipient, force its selection and remove the select widget 2011-08-23 12:11:32 +02:00
Benjamin Dauvergne 45b4a35b21 FileForm: in the filetype field add an empty label 2011-08-23 12:11:32 +02:00
Benjamin Dauvergne 80fb1bd44a FileForm: in the recipient list, remove the separator if there is only one kind of recipients 2011-08-23 12:11:28 +02:00
Benjamin Dauvergne 38dc831883 FileForm: change recipient and filetype list depending on the sender belonging to some list
The two mailing lists affected are Parlementaires and Gouvernement.

Filetype list for each one is configurable from the setting file.
Recipient list is hard-coded to "Greffe".

Closes #593.
2011-08-23 12:11:22 +02:00
Benjamin Dauvergne 651f878f52 FileForm: change translations for the target label on the new send form 2011-08-23 12:11:18 +02:00
Benjamin Dauvergne 8a20777b1d remove capitalization of some filetype names 2011-08-23 12:04:33 +02:00
Benjamin Dauvergne 5b8e47f0cd in load-users-csv command, do not throw KeyError on absent password 2011-08-22 17:54:36 +02:00
Benjamin Dauvergne 3c905499b1 add timestamp to log when sending a document 2011-08-22 17:22:15 +02:00
Benjamin Dauvergne bdb90b096c add API to produce and check timestamped JSON tokens
To make a JSON token, produce some JSON object, compute its digest,
timestamp the digest, remove the last curly brace of the JSON
serialization, replace it by: ,"timestamp":"<b64_timestamp>"}

where <b64_timestamp> is the base64 encoded value of the timestamp token
returned by the RFC3161 service.
2011-08-22 16:10:06 +02:00
Benjamin Dauvergne ca691a0d6e add a method to compute a JSON digest of a document 2011-08-22 16:10:06 +02:00
Benjamin Dauvergne 05cca16360 remove non alphanumeric characters when building username, empty password is the same as no-password column 2011-08-22 16:08:36 +02:00
Benjamin Dauvergne ea356cc5d9 add password generation to user loading command 2011-08-22 12:33:32 +02:00
Benjamin Dauvergne 513b57f0ac move back media and static directory in the source directory 2011-08-22 12:13:42 +02:00
Benjamin Dauvergne e7d593620f Merge branch 'master' of repos.entrouvert.org:docbow 2011-08-22 12:10:28 +02:00
Benjamin Dauvergne c44ab00b8e update README.rst with latest installation instructions
also update dev-req.txt for missing/useless dependecies
2011-08-22 12:10:12 +02:00
Benjamin Dauvergne b4f2eca3b7 remove initial data fixture 2011-08-22 10:39:40 +02:00
Benjamin Dauvergne a7b86c79bb rename docbow_app package to docbow 2011-08-22 10:39:12 +02:00
Benjamin Dauvergne d96b2fea95 rename docbow package to docbow_project 2011-08-22 10:25:49 +02:00
Frédéric Péters 165febd773 Apply notification style on login page 2011-08-21 16:48:41 +02:00
Benjamin Dauvergne 7cc5af56fa add missing module to requirement, fix git URL usage 2011-08-19 15:47:10 +02:00
Benjamin Dauvergne 6b217c98a7 when archiving, remove all profiles/mailing lists 2011-08-19 15:29:48 +02:00
Benjamin Dauvergne 1b3f281771 Show counts of added/modified users 2011-08-19 15:29:48 +02:00
Benjamin Dauvergne 8ae692e846 timestamp archived logs, when failing remove the archive directory
(refs #551)
2011-08-19 15:29:48 +02:00
Benjamin Dauvergne 0a1a03016f add a timestamp module based on the rfc3161 module
The timestamp server is hardcoded for now to:

	http://time.certum.pl

(closes #596)
2011-08-19 15:29:48 +02:00
Benjamin Dauvergne d10ae02e0b complete pip requirements, fix bad ldap module name 2011-08-19 15:29:48 +02:00
Benjamin Dauvergne 87d4cbf6fe add command-line commands to archive/initialize the metadatas
- load-user-csv allow to load a file formatted like this:

	username,prenom,nom,email,profil,groupe
	bdauvergne,Benjamin,Dauvergne,bdauvergne@eo.com,"Parlementaires,Commissions des finances","Administrateurs des listes"

  If a group or a profile/mailing-list does not exist, it is created.

- archive take a directory as an argument, it will create a new
  directory into this directory with the date and time of the days,
  inside this directory, there will be two files:

  - users.csv: a dump of all the users as formatted to be loaded by
    load-users-csv

  - log.csv: a dump of all the LogLine table containing CSV line
    formatted as with the following columns: timestamp, name, levelname,
    user, ip, message.

  - log-timestamp.der: a signed timestamp of the log file (a
    TimestampToken structure from RFC3161).

Closes #551
2011-08-19 15:29:17 +02:00
Benjamin Dauvergne 2a17f8b2a9 add fixture for initial group definition 2011-08-19 14:20:33 +02:00
Benjamin Dauvergne b83b14e3fc add LDAP auth backend configuration for Entrouvert administrators 2011-08-19 14:18:13 +02:00
Benjamin Dauvergne 1f3377ef79 add ldap to requirements 2011-08-19 14:17:58 +02:00
Benjamin Dauvergne 715ad5f932 remove version limit from pip requirement file, add django-auth-ldap (for EO admins) 2011-08-19 13:01:47 +02:00
Benjamin Dauvergne 606e2d4057 Simplify Content and FileType models, add natural keys 2011-08-18 15:58:07 +02:00
Benjamin Dauvergne 89466df695 remove all migrations 2011-08-18 15:02:48 +02:00
Benjamin Dauvergne f734ea5773 Remove useless fixtures, add a specific fixture for filetypes 2011-08-18 15:02:17 +02:00
Benjamin Dauvergne d9482fd384 move production settings to postgresql backend 2011-08-18 15:00:34 +02:00
Benjamin Dauvergne c9eee6afb8 fix ROOT_PATH computation since main.py moved 2011-08-18 15:00:15 +02:00
Benjamin Dauvergne 1d7069db89 change database backend for postgresql, on a db named docbow 2011-08-18 11:48:41 +02:00
Benjamin Dauvergne 6252a59cb1 move main.py setting file 2011-08-18 11:45:41 +02:00
Benjamin Dauvergne 63494ae2aa do not show deleted document in the inbox content count 2011-08-16 10:47:54 +02:00
Benjamin Dauvergne da763ff644 change noreply@ email address to point on docbow.demo.entrouvert.com 2011-08-16 10:41:39 +02:00
Benjamin Dauvergne 4865b995fb simplify message listing, details, attached files and delete views by only using the Mailbox model 2011-08-16 09:38:46 +02:00
Benjamin Dauvergne 51e704a8a4 show predefined content in admin 2011-08-16 09:37:54 +02:00
Benjamin Dauvergne 0472ca69d2 Add missing space before a colon 2011-07-31 09:41:56 +02:00
Benjamin Dauvergne e8316c6ab5 Add nbsp before : in notification email 2011-07-29 15:18:20 +02:00
Benjamin Dauvergne f12b8df87a Cache templates when configured for production 2011-07-29 14:59:32 +02:00
Benjamin Dauvergne 0ab91cec54 Improve notification email bis (closes #512) 2011-07-29 12:10:52 +02:00
Benjamin Dauvergne 8813ff7743 Improve notification emails (closes #512) 2011-07-29 11:19:36 +02:00
Benjamin Dauvergne fd716052bf load widgets.css before send-style.css 2011-07-28 17:07:52 +02:00
Benjamin Dauvergne 222b4c1f61 Add missing CSS file for styling the recipient widget 2011-07-28 16:52:03 +02:00