-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
25 lines (23 loc) · 1.07 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- coding: utf-8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_TRACK_MODIFICATIONS = False
UPLOAD_FOLDER = 'uploads'
# None (to forbid Ark download), TEST (to download the sample METS), PFO, PFV, ...
ACCESS_PLATFORM = 'TEST'
# If TEST, the url of the sample METS, otherwise the url of the ACCESS module
ACCESS_URL = 'http://localhost:5000/static/samples/bpt6k206840w.manifest.xml'
ACCESS_ENDPOINT = 'http://localhost:5000/static/samples/sparqlResponse2.json'
REPORT_ENDPOINT = 'http://localhost:5000/static/samples/sparqlResponseReport.json'
GRAPH_TESTFILE = 'http://localhost:5000/static/samples/bpt6k206840w.rdf.json'
NODES_TESTFILE = 'http://localhost:5000/static/samples/bpt6k206840w.nodes.rdf.json'
SPARQL_URL = 'http://localhost:5000/static/samples/bpt6k206840w.rdf.json'
ARK_PREFIX = 'ark:/12148/'
ALLOWED_EXTENSIONS = set(['xml'])
# available languages
LANGUAGES = {
'en': 'English',
'fr': 'Français'
}