Daniel Quinn
75251ad694
Add a note for future development
2018-01-06 18:30:33 +00:00
Daniel Quinn
870357968a
Fix tests to run on boxes with post-consume-scripts set
2018-01-06 17:23:24 +00:00
Daniel Quinn
a593798b4b
Add encoding declaration
2018-01-06 17:23:07 +00:00
Daniel Quinn
4f070ba162
Use double quotes by default
2018-01-06 17:22:57 +00:00
Daniel Quinn
9517d27f40
Add warnings to the test runner
2018-01-06 17:22:40 +00:00
Daniel Quinn
35bb3dbcc2
Clean up CSS for #272
2018-01-06 15:57:25 +00:00
ishirav
d1c8241947
break long lines (pep8)
2017-12-23 07:39:40 +02:00
ishirav
4c38b28469
break long lines (pep8)
2017-12-23 06:59:48 +02:00
ishirav
83746a9aeb
Add tests and improve whitespace handling
2017-12-23 06:37:00 +02:00
ishirav
6a36a4ec97
Support search terms that contain multiple words in ANY/ALL matching modes, by surrounding the terms with double quotes.
2017-12-23 06:05:48 +02:00
Daniel Quinn
bd67b53d50
Update test for #259 fix
2017-10-16 10:53:18 +01:00
Daniel Quinn
e32ed09da3
Support .jpeg as well as .jpg
2017-10-16 09:00:38 +01:00
David Martin
67b492bcb7
Determine the start of the financial only for wrapping years.
...
If the financial year is from Jan to Dec there we do not need to
determine the start to see which year it falls into.
2017-08-26 19:50:57 +10:00
David Martin
360d1e2802
Store whether financial year wraps instead of re-determining it.
...
It either wraps or it does not depending on how it is set in the config.
There is no point in determining it again for each document. Instead we
simply store it as a member variable the first time we check.
2017-08-26 19:45:39 +10:00
David Martin
1cd76634a3
Take non-wrapping financial years into account.
...
The German financial year for example goes from January to December. In
those cases we simply only show the year in the overview.
2017-08-25 20:27:39 +10:00
David Martin
c65c5009e4
Return no filter results if financial year dates are not set.
...
This is a lot cleaner than trying to hack around whether or not the
FinancialYearFilter is part of the available filters. This way it will
show up if there are result for it and the dates are set, and it will
not if any of those conditions is not set.
2017-08-25 17:36:09 +10:00
David Martin
24fb6cefb9
Add config settings to set the start and the end of the financial year.
...
Now we allow to filter for any financial year dates. Note that we also
only show the financial year filter if the dates are actually set.
2017-08-24 20:51:09 +10:00
David Martin
d80e272b75
Add a basic financial year filter for the document overview.
...
For now we simply hardcode the dates for the AU financial years. We
simply show a list of financial years and filter the documents
accordingly.
2017-08-24 20:20:00 +10:00
maphy-psd
82f05e27c3
fix travis ci E510
...
E501 line too long (85 > 79 characters)
2017-08-20 16:18:39 +02:00
maphy-psd
7a627e4ad8
white spacing and remove var's prefix
2017-08-20 14:29:51 +02:00
maphy-psd
73af9552ec
getenv has "None" as default
...
@MasterofJOKers in PR#255
2017-08-20 14:13:23 +02:00
maphy-psd
e4854f2144
def thumbnail uses FORCE_SCRIPT_NAME
...
with this edit the tumbnails are show up..
2017-08-19 18:37:17 +02:00
maphy-psd
6f5c1ac4e1
add FORCE_SCRIPT_NAME setting
2017-08-19 12:39:25 +02:00
Christoph Roeder
d1aa54caa9
create documents subfolder folder if they do not exist
2017-07-31 21:35:41 +02:00
Daniel Quinn
347986a2b3
Allow correspondents to be deleted without deleting their documents
...
Fixes #235
2017-07-15 19:13:10 +01:00
Daniel Quinn
ede274386b
Detect .tif files properly
...
Fixes #232
2017-07-15 19:02:11 +01:00
Daniel Quinn
2ac1b78a2c
Move testing ENV vars into pytest.ini
2017-06-19 10:57:30 +01:00
Daniel Quinn
e8e38befb7
Fix test for new email secret
2017-06-19 10:24:23 +01:00
Daniel Quinn
b30629dd60
Remove debugging info
2017-06-19 09:22:26 +01:00
Daniel Quinn
f66d7e1c2d
Drop SHARED_SECRET in favour of EMAIL_SECRET
...
Originally we used SHARED secret both for email and for the API. That
was a bad idea, and now that we're only using this value for one case,
I've renamed it to reflect its actual use.
2017-06-18 22:08:42 +01:00
Daniel Quinn
6f635c74fc
Fix HTTP POST of documents
...
After tinkering with this for about 2 hours, I'm reasonably sure this
ever worked. This feature was added by me in haste and poked by by the
occasional contributor, and it suffered from neglect.
* Removed the requirement for signature generation in favour of simply
requiring BasicAuth or a valid session id.
* Fixed a number of bugs in the form itself that would have ensured that
the form never accepted anything.
* Documented it all properly so now (hopefully) people will have less
trouble figuring it out in the future.
2017-06-11 01:23:37 +01:00
Daniel Quinn
c82d45689c
Remove unused imports & comments
2017-06-11 01:23:08 +01:00
Lucas Kolstad
fde0276d65
Add django_filters to INSTALLED_APPS
2017-05-30 15:05:34 -07:00
Daniel Quinn
3d6289e4e1
Preparing for 0.5.0
...
I hadn't realised that I hadn't released 0.5.0 yet, so I've amended the version numbers
2017-05-27 13:23:25 +01:00
Daniel Quinn
5e55b971a8
Update changelog for 0.5.1
2017-05-27 13:21:04 +01:00
Daniel Quinn
0a43b84a96
Merge pull request #228 from ddddavidmartin/extend_email_handling
...
Set email inbox in config file, fetch email at consumer startup and bring documentation up to date
2017-05-27 13:07:17 +01:00
Daniel Quinn
dc74cc2db5
Merge pull request #230 from ddddavidmartin/webserver_paperless_titles
...
Refer to Paperless in Django webserver titles and update Django documentation URLs
2017-05-27 13:00:46 +01:00
David Martin
c3a55c91dc
Update version of remaining weblinks to Django documentation.
...
We are using Django 1.10 as per requirements.txt and should refer to its
documentation as well.
2017-05-27 08:49:03 +10:00
David Martin
482f02fbaa
Update link to Django documentation in urls.py.
...
As per requirements.txt we are using Django version 1.10. It makes sense
to link to the documentation for that version as well.
Also, the documentation for the previous version has a notice on the top
that informs about the version being unsafe which is a bit disconcerting
when seeing it.
2017-05-25 20:22:05 +10:00
David Martin
6bf7429ef6
Refer to Paperless instead of Django in webserver pages.
...
It looks better to have the page titles refer to Paperless rather than
Django. The same with the login. Setting it in urls.py is based on this
stackoverflow response [0]. The proper documentation for the admin page
is under [1].
[0] https://stackoverflow.com/a/24983231
[1] https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#adminsite-attributes
2017-05-25 20:16:59 +10:00
David Martin
0090128249
Fix clened_data typos in forms.py.
...
This is where linters shine. Either pylint or pyflake discovered these
typos and even suggested the correct name.
2017-05-21 17:05:49 +10:00
David Martin
3153bbd6a8
Fetch emails right at startup instead of waiting for 10 minutes.
...
Especially when first setting up the configuration for consuming
documents from emails it makes sense to quickly test the changes. Having
to wait for 10 minutes is not acceptable.
There are two ways around it that come to my mind: the simple approach
is to always fetch the emails when Paperless first starts. This way the
fetching of emails can be tested straight away.
The alternative would be to have a configuration option that allows to
set the interval in which emails are checked. The user could then reduce
it to test the setup and increase it again later on. This seems
needlessly complicated though, so fetching at startup it is.
2017-05-21 14:23:46 +10:00
David Martin
c647daace2
Connect to configured inbox instead of hardcoded one.
...
Now the retrieving of emails from the inbox set in the config file works
as expected.
2017-05-21 08:34:49 +10:00
David Martin
70dceb3b37
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
731942d855
add: migration for fuzzy matching
2017-05-11 22:09:30 -07:00
CkuT
279e421ad5
PEP8
2017-05-08 15:48:37 +02:00
CkuT
22c8049bed
Use relatives paths instead of absolutes paths for document export/import
2017-05-08 15:23:35 +02:00
CkuT
3f1392769d
Refactor to get the document time once
2017-05-08 15:02:59 +02:00
CkuT
da71eab0ae
Use constants for manifest
2017-05-08 14:54:48 +02:00
CkuT
2e0e6bb8d2
Add thumbnail export
2017-05-06 15:14:36 +02:00