Moved definition of constant values into the config file

Rather than go change all the calls in user/pseud I realized we can just move the values into the config file and set the constants to the config value.

Signed-off-by: shalott <shalott@gmail.com>
Move downloadable functionality into a separate module

Moved download functions into a separate module, added unit tests

Signed-off-by: shalott <shalott@gmail.com>
Getting rid of the deprecated form of the rendering call

Signed-off-by: shalott <shalott@gmail.com>
Heavily revised download tests and added steps to check downloads are received and of correct format

Signed-off-by: shalott <shalott@gmail.com>
Converting mobi/epub downloads to use calibre rather than separate tools, adds more options

This adds the configurable option to offer the various download formats supported by calibre running in headless state.

Signed-off-by: shalott <shalott@gmail.com>
Converting mobi/epub downloads to use calibre rather than separate tools, adds more options

This adds the configurable option to offer the various download formats supported by calibre running in headless state.

Signed-off-by: shalott <shalott@gmail.com>
Downloads need to expire when owner changes: issue 3054

https://code.google.com/p/otwarchive/issues/detail?id=3054
Signed-off-by: shalott <shalott@gmail.com>
Move rendering of downloads into the downloadable module instead of the controller

Signed-off-by: shalott <shalott@gmail.com>
Removed unnecessary xhtml splitter

Signed-off-by: shalott <shalott@gmail.com>
removed user-specific hide-warnings/freeforms check

Signed-off-by: shalott <shalott@gmail.com>
Got rendering in module to work

Signed-off-by: shalott <shalott@gmail.com>
Added a few more unsafe characters to filename test

Signed-off-by: shalott <shalott@gmail.com>
Made sure download directory gets deleted on update and on destroy

Signed-off-by: shalott <shalott@gmail.com>
Test fixes/improvements

Signed-off-by: Naomi Novik <shalott@gmail.com>
Fixing a couple small bugs and permissions issues

Signed-off-by: Naomi Novik <shalott@gmail.com>
Fix for issue 2645 html entities in filenames

https://code.google.com/p/otwarchive/issues/detail?id=2645
Signed-off-by: Naomi Novik <shalott@gmail.com>
Tidying up last bit and fixing issue 3024

Signed-off-by: Naomi Novik <shalott@gmail.com>
Create download directory by hashing ID instead of using author name(s)
Expire downloads of downstream works in a series
Test to confirm that issue 3908 is fixed.