demosite: missing index fixtures

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
preservationmeter: Add module

* Adds information about record quality to the record base template
* Adds base and preserventation meter to config packages
* Adds basic tests
* Adds blueprint and templates_folder to the views.py
* Add configuration overrides
* Adds basic API structure and methods

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Starting tests

* Adds record mocking to tests
* API now gets list of files using get_record(recid)

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: improved code based on comments

* Added print_function import
* Added current_app import from flask
* Added cfg to test_api

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Added more test defs, refactor

* Added some test definitions
* Refactored get_extension and get_name

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Refactor and testing

* Refactored lots of code on API
* Added a test

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Refactored tests.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Fix for invalid extension.

* If unknown or invalid extension then the score returns 0.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Adds cfg for quality mapping.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Adds and improves testing.

* Adds a singleton class for Record mocking.
* Improves overall tests.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Adds more tests.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Adds template to module.

* Includes the preservation meter inside the base.html of the record.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Fixes cfg naming convention.

* Capitalizes the name of the var.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Extracts import out of function.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Removes blank line from HTML.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: zipfile draft

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Fixes cfg import.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Adds tmp draft of extract.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: adds basic zipfile test.

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>
preservationmeter: Adds more robust archive tests.

* Uses shutil.make_archive()

Signed-off-by: Joao Goncalves <jsvgoncalves@gmail.com>