35 Commits

Author SHA1 Message Date
Daniel Quinn
0aa0513004 Modifications for support for dates 2016-03-24 19:18:33 +00:00
Daniel Quinn
3b278c3a24 Added an informational log message for consumer start 2016-03-06 17:26:07 +00:00
Daniel Quinn
5d4587ef8b Accounted for .sender in a few places 2016-03-04 09:14:50 +00:00
Daniel Quinn
ba7878b9aa Added some tests for the importer 2016-03-03 21:25:08 +00:00
Daniel Quinn
070463b85a s/Sender/Correspondent & reworked the (im|ex)porter 2016-03-03 20:52:42 +00:00
Daniel Quinn
439b60ce5c Merged new logging system 2016-02-28 15:01:19 +00:00
Daniel Quinn
631aa99d92 No need to pass verbosity around anymore 2016-02-28 00:39:40 +00:00
Daniel Quinn
51173d80cf License clarification 2016-02-27 20:19:09 +00:00
Daniel Quinn
422ae9303a pep8 2016-02-21 00:14:50 +00:00
Pit Kleyersburg
724afa59c7 Add Dockerfile for application and documentation
This commit adds a `Dockerfile` to the root of the project, accompanied
by a `docker-compose.yml.example` for simplified deployment. The
`Dockerfile` is agnostic to whether it will be the webserver, the
consumer, or if it is run for a one-off command (i.e. creation of a
superuser, migration of the database, document export, ...).

The containers entrypoint is the `scripts/docker-entrypoint.sh` script.
This script verifies that the required permissions are set, remaps the
default users and/or groups id if required and installs additional
languages if the user wishes to.

After initialization, it analyzes the command the user supplied:

  - If the command starts with a slash, it is expected that the user
    wants to execute a binary file and the command will be executed
    without further intervention. (Using `exec` to effectively replace
    the started shell-script and not have any reaping-issues.)

  - If the command does not start with a slash, the command will be
    passed directly to the `manage.py` script without further
    modification. (Again using `exec`.)

The default command is set to `--help`.

If the user wants to execute a command that is not meant for `manage.py`
but doesn't start with a slash, the Docker `--entrypoint` parameter can
be used to circumvent the mechanics of `docker-entrypoint.sh`.

Further information can be found in `docs/setup.rst` and in
`docs/migrating.rst`.

For additional convenience, a `Dockerfile` has been added to the `docs/`
directory which allows for easy building and serving of the
documentation. This is documented in `docs/requirements.rst`.
2016-02-18 22:58:32 +01:00
Daniel Quinn
1e7ece81ee Fixes #45 2016-02-17 23:07:54 +00:00
Daniel Quinn
2f0da8ab25 Added download_url to the Document model 2016-02-15 22:38:18 +00:00
Daniel Quinn
7843ea5037 Added and implemented a rudimentary logger 2016-02-14 16:09:52 +00:00
Daniel Quinn
3b5d4cdd39 Added some error handling 2016-02-14 01:32:25 +00:00
Daniel Quinn
7aadab23cc Added the Renderable mixin because DRY 2016-02-11 22:05:38 +00:00
Daniel Quinn
c423a13f85 Added a simple re-tagger 2016-02-11 12:24:18 +00:00
Daniel Quinn
48761911b3 Image imports and consumption by mail work 2016-02-06 17:05:36 +00:00
Daniel Quinn
71075a691a The mailconsumer isn't a consumer at all. Best fixt that 2016-02-05 20:15:08 +00:00
Daniel Quinn
a70b40f618 Broke the consumer script into separate files and started on a mail consumer 2016-01-30 01:18:52 +00:00
Daniel Quinn
ace9389e5f #12: Support image documents 2016-01-29 23:18:03 +00:00
Daniel Quinn
0ec63ae1f9 #11: automatic tagging support 2016-01-28 07:23:11 +00:00
Daniel Quinn
65074b4375 Smarter check positions 2016-01-23 03:42:39 +00:00
Daniel Quinn
0eb0c88d3d Now the exporter sets the proper dates 2016-01-23 03:22:15 +00:00
Daniel Quinn
9e596953a3 pep8 2016-01-23 02:58:03 +00:00
Daniel Quinn
d69df37fb6 The exporter now re-dates the files 2016-01-23 02:57:29 +00:00
Daniel Quinn
fdb29f739f Added language detection 2016-01-23 02:33:29 +00:00
Daniel Quinn
ec70d05517 Introducing language detection 2016-01-21 12:50:22 -05:00
the01
4c1ff658d2 add language setting for tesseract 2016-01-21 09:24:13 +01:00
Daniel Quinn
17615d43cb Fixed a few consumer bugs and added an exporter
Rename exporter to export and fixt some debugging

Account for files not matching the sender/title pattern

Added a safety note

Wrong regex on the name parser

Renamed the command to something slightly less ambiguous
2016-01-15 18:14:42 +00:00
Daniel Quinn
2e48036f92 Actually handle the change to using a Sender model 2016-01-15 02:02:47 +00:00
Daniel Quinn
10a0556951 Updated the docstring to show what's actually happening 2016-01-10 15:51:38 +00:00
Daniel Quinn
f72c515742 Added GPG encryption for the PDFs 2016-01-01 16:13:59 +00:00
Daniel Quinn
946dbf4ea0 Changed the consumer into a loop 2015-12-26 13:21:33 +00:00
Daniel Quinn
802e9d7045 Restructured the consumer into a loop and added a check for scans in-progress 2015-12-21 02:44:24 +00:00
Daniel Quinn
855ee64097 It works! 2015-12-20 19:23:33 +00:00