19 Commits

Author SHA1 Message Date
Jonas Winkler
afc3753e58 code cleanup 2020-11-21 14:03:45 +01:00
Jonas Winkler
198a301884 using mime type checking during upload 2020-11-21 01:42:55 +01:00
Jonas Winkler
fc0ba2098a FileType does not care about the extension anymore. 2020-11-20 16:18:59 +01:00
Jonas Winkler
7408d3855c bugfix 2020-11-18 11:32:48 +01:00
Jonas Winkler
39ba14aac1 refactor 2020-11-17 11:49:44 +01:00
Jonas Winkler
bd04c966c5 first version of the new consumer. 2020-11-16 18:26:54 +01:00
Jonas Winkler
eb6805e37e code style fixes 2020-11-12 21:09:45 +01:00
Jonas Winkler
c1348d3dbf updated document upload form 2020-11-07 23:25:50 +01:00
Daniel Quinn
446a686f10 Code cleanup 2018-07-08 16:07:10 +01:00
Ovv
d89dbbe537 Configuration cli argument for document_consumer 2018-03-03 18:43:20 +00:00
Daniel Quinn
2d83a2f013 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
14c3e9d509 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
David Martin
00c30e362d 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
Daniel Quinn
14375e19ef I'm not sure how this would have worked before 2016-03-28 19:56:17 +01:00
Daniel Quinn
5d4587ef8b Accounted for .sender in a few places 2016-03-04 09:14:50 +00:00
Daniel Quinn
070463b85a s/Sender/Correspondent & reworked the (im|ex)porter 2016-03-03 20:52:42 +00:00
Daniel Quinn
26c3781350 #44: Harmonise environment variables with constant names 2016-03-01 22:37:42 +00:00
Daniel Quinn
422ae9303a pep8 2016-02-21 00:14:50 +00:00
Daniel Quinn
0eaed36420 The 'API' is written but untested 2016-02-08 23:46:16 +00:00