3259 Commits

Author SHA1 Message Date
David Martin
9d4c90199f Allow to configure the email inbox via config file.
Same as all the other parameters it makes sense to set it in the config
file as well.
2017-05-20 16:48:40 +10:00
Daniel Quinn
700b7fe257 add: migration for fuzzy matching 2017-05-11 22:09:30 -07:00
CkuT
706ce09797 PEP8 2017-05-08 15:48:37 +02:00
CkuT
cabb9b5096 Use relatives paths instead of absolutes paths for document export/import 2017-05-08 15:23:35 +02:00
CkuT
a4f389de36 Refactor to get the document time once 2017-05-08 15:02:59 +02:00
CkuT
909fa3579c Use constants for manifest 2017-05-08 14:54:48 +02:00
CkuT
4c4255172f Add thumbnail export 2017-05-06 15:14:36 +02:00
CkuT
0057feefd1 Fix the source file checking 2017-05-06 15:04:47 +02:00
jgysland
18b16c6f18 KISS fuzzy match help text 2017-04-30 16:56:50 -04:00
jgysland
507afe9e93 add fuzzy matching + tests 2017-04-29 17:13:04 -04:00
Daniel Quinn
b573a5bf08 Merge pull request #214 from philippeowagner/master
Fixes #213 (MySQL syntax error)
2017-04-19 10:42:50 +01:00
Philippe O. Wagner
236da3cdfc Fixes #213 (MySQL syntax error) 2017-04-19 11:30:12 +02:00
Daniel Quinn
a5675edd6b fix: travis doesn't like my new tests 2017-03-28 21:23:42 +00:00
Daniel Quinn
e7d4ca92ba fix: allow for caps in file name suffixes #206
@schinkelg ran aground of this one and I took the opportunity to add a
test to catch this sort of thing for next time.
2017-03-28 21:14:24 +00:00
Daniel Quinn
bae7284d34 feat: add the new reminders app 2017-03-25 16:21:46 +00:00
Daniel Quinn
e9fbeb27ff refactor: code cleanup
I hate single quotes.
2017-03-25 16:20:59 +00:00
Daniel Quinn
9cee51cd11 refactor: break document-only stuff into the paperless app
The `SessionOrBasicAuthMixin` and `StandardPagination` classes were
living in the documents app and I needed them in the new `reminders`
app, so this commit breaks them out of `documents` and puts them in the
central `paperless` app instead.
2017-03-25 16:18:34 +00:00
Daniel Quinn
377a29871c feat: migration for changes in 0.3.6 2017-03-25 16:01:59 +00:00
Daniel Quinn
083ed3c7a3 fix: pep8 + travis & tox env updates 2017-03-25 15:10:51 +00:00
Daniel Quinn
2acf8a6691 version bump 2017-03-25 15:10:51 +00:00
Daniel Quinn
09e655880c feat: make the content field optional 2017-03-25 15:10:25 +00:00
Daniel Quinn
7cb7d62bb8 fix: a little cleanup 2017-03-25 15:10:25 +00:00
Daniel Quinn
d2c283582b feat: refactor for pluggable consumers
I've broken out the OCR-specific code from the consumers and dumped it
all into its own app, `paperless_tesseract`.  This new app should serve
as a sample of how to create one's own consumer for different file
types.

Documentation for how to do this isn't ready yet, but for the impatient:

* Create a new app
    * containing a `parsers.py` for your parser modelled after
      `paperless_tesseract.parsers.RasterisedDocumentParser`
    * containing a `signals.py` with a handler moddelled after
      `paperless_tesseract.signals.ConsumerDeclaration`
    * connect the signal handler to
      `documents.signals.document_consumer_declaration` in
      `your_app.apps`
* Install the app into Paperless by declaring
  `PAPERLESS_INSTALLED_APPS=your_app`.  Additional apps should be
  separated with commas.
* Restart the consumer
2017-03-25 15:10:25 +00:00
Daniel Quinn
ff235de680 fix: #200 allow edits of correspondent & tags 2017-03-25 15:01:01 +00:00
Daniel Quinn
8f88367412 Merge branch 'master' of github.com:danielquinn/paperless 2017-03-05 12:15:22 +00:00
Daniel Quinn
38737f9d5c Disable adding through the admin 2017-03-05 12:15:18 +00:00
Philippe O. Wagner
6922759aed Better alt-text for thumbnails. 2017-03-01 00:50:53 +01:00
Daniel Quinn
7b77450d80 Django migrations doesn't account for PostgreSQL completely
This was a weird bug to run into.  Basically I changed a CharField into
a ForeignKey field and ran `makemigrations` to get the job done.
However, rather than doing a `RemoveField` and an `AddField`, migrations
created a single `AlterField` which worked just fine in SQLite, but blew
up in PostgreSQL with:

    psycopg2.ProgrammingError: operator class "varchar_pattern_ops" does
    not accept data type integer

The fix was to rewrite the single migration into the two separate steps.
2017-02-18 17:55:52 +00:00
Daniel Quinn
5c133ecb36 Allow for MariaDB/MySQL
MariaDB/MySQL doesn't handle indexes on TextFields well and for some
reason, Django's migrations opts to blow up rather than handle this in a
more user-friendly way.  The fix here isn't ideal, but should be
sufficient should anyone try to use Paperless with MySQL.
2017-02-18 17:53:43 +00:00
Daniel Quinn
73043dbeb2 A nicer look for the documents listing
This change includes a filthy hack around how Django handles
change_list_results.html -- I'm not thrilled with it, but it's as
elegant as I could come up with.  I'm happy to field alternative ideas.
More details can be found in `documents/templatetags/hacks.py`

Specifically, this merge includes a significant facelift to the
documents listing page, moving away from the tabular layout and toward a
tileset look.  I tried fiddling with the colours, but I just don't have
any skills in that area, so we're all stuck with Django'd default
colours until someone with an eye for colour can submit a better CSS.
2017-02-12 17:52:01 +00:00
Dashie
454e5fb126 Add check for PAPERLESS_MEDIADIR 2017-02-01 00:28:37 +01:00
Dashie
caaf5f2fcd Add config option to override STATIC_ROOT 2017-02-01 00:22:32 +01:00
Enno Lohmeier
ce5c5f0837 include flat responsive theme 2017-01-23 08:26:47 +01:00
Daniel Quinn
75884285cf Added checks for expected binaries in the PATH
Fixes #112
2017-01-14 18:04:15 +00:00
Daniel Quinn
d7d9c1edc0 Moved the dotenv loading above everything else 2017-01-14 18:03:42 +00:00
Daniel Quinn
92db3fec2e Allow users to set their own SECRET_KEY value
Fixes #171
Negates #174
2017-01-14 17:21:43 +00:00
Daniel Quinn
69ea039e31 Adds the ability for the user to configure the number of items per page.
Specifically requested by @ekw here:
https://github.com/danielquinn/paperless/issues/180#issuecomment-271665682
2017-01-14 17:09:48 +00:00
Eric Wong
855e9f6c83 Remove django-suit 2017-01-09 23:31:56 -08:00
Daniel Quinn
e63e9e389e Shrinking the size of the thumbnails as they were huge even on my hidpi screen 2017-01-08 19:43:17 +00:00
Daniel Quinn
c646cd4977 Update for 0.3.4 2017-01-08 19:40:50 +00:00
Daniel Quinn
6b53c0dc27 Merge pull request #179 from thomasbrueggemann/master
The /fetch endpoint can be authenticated via session or via HTTP basic
2017-01-08 19:40:24 +00:00
Thomas Brüggemann
afb4e317f0 Another indentation fix 2017-01-08 20:36:51 +01:00
Thomas Brüggemann
a698c69b4d Fix pep8 style 2017-01-08 20:33:33 +01:00
Daniel Quinn
4121876116 Update for version 0.3.3 2017-01-08 19:13:52 +00:00
Thomas Brüggemann
060d3011f7 The /fetch endpoint can be authenticated via session or via HTTP basic now. 2017-01-08 20:09:51 +01:00
Daniel Quinn
92e178cc59 Fixing some style bits for my own OCD 2017-01-08 19:05:31 +00:00
Eric Wong
a32625ca04 Make OCR_LANGUAGE configurable (Fix #176) 2017-01-07 23:27:10 -08:00
Eric Wong
3c08fa9b33 Make number of list items per page configurable 2017-01-07 23:15:59 -08:00
Eric Wong
e6526d3fd4 Make timezone configurable 2017-01-07 15:12:45 -08:00
Eric Wong
bee0867a2a Add document thumbnail images; use django-suit theme for admin 2017-01-07 14:57:25 -08:00