| author | durandn |
| Mon, 13 Apr 2015 12:03:48 +0200 | |
| changeset 95 | 0a131f9b92a5 |
| parent 91 | 59450d864881 |
| child 109 | b5380791ca15 |
| permissions | -rw-r--r-- |
|
12
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
11
diff
changeset
|
1 |
""" |
|
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
11
diff
changeset
|
2 |
settings.py: |
|
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
11
diff
changeset
|
3 |
Contains all settings that are needed but are not to be changed |
|
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
11
diff
changeset
|
4 |
""" |
|
62
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
40
diff
changeset
|
5 |
from rdflib import Namespace |
|
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
40
diff
changeset
|
6 |
|
|
0
54f4e0f9d636
Initial commit
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
7 |
|
|
12
8ca7be41e3ca
Pylint + pep8 + adapted code to Python 3 + added support for authentication when persistence is set to PersistenceToFile + cleaning up settings.py/config.py.tmpl and updated readme
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
11
diff
changeset
|
8 |
class AppSettings(object): |
|
5
259707477c10
Added commit message to category deletion + config.py tmpl + persistence method is now configurable in settings and instanciated from a string + removed log.txt from tracking
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
3
diff
changeset
|
9 |
|
|
259707477c10
Added commit message to category deletion + config.py tmpl + persistence method is now configurable in settings and instanciated from a string + removed log.txt from tracking
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
3
diff
changeset
|
10 |
# WTForms settings |
|
259707477c10
Added commit message to category deletion + config.py tmpl + persistence method is now configurable in settings and instanciated from a string + removed log.txt from tracking
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
3
diff
changeset
|
11 |
|
|
0
54f4e0f9d636
Initial commit
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
12 |
WTF_CSRF_ENABLED = True |
|
54f4e0f9d636
Initial commit
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
13 |
|
|
40
8c32ea41b391
New version + Reworked login process to suppress unauthenticated request + reworked file persistence + added tests module and API tests + reworked how the list repositories user can access is generated (can now only access repositories that are both in his repository list AND in the config repository list, so there is no need to add every new user to all repositories)
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
12
diff
changeset
|
14 |
# RDF Namespace and prefixes - Must end with # |
|
0
54f4e0f9d636
Initial commit
Nicolas DURAND <nicolas.durand@iri.centrepompidou.fr>
parents:
diff
changeset
|
15 |
|
|
62
746d486f7c42
Added support for custom properties per repository + added doc in the readme for this (config.py PROPERTY_LIST entry has changed a bit)
durandn
parents:
40
diff
changeset
|
16 |
BASE_NAMESPACE = "http://ld.iri-research.org/ontology/categorisation" |
|
78
9d45f0db08f3
set celery conf to avoid deprecation warning on serializer
ymh <ymh.work@gmail.com>
parents:
62
diff
changeset
|
17 |
CATEGORY_NAMESPACE = Namespace("http://ld.iri-research.org/ontology/categorisation/category#") |
|
91
59450d864881
add task indicator + some cleaning tasks
ymh <ymh.work@gmail.com>
parents:
78
diff
changeset
|
18 |
CELERY_IGNORE_RESULT = False |
|
78
9d45f0db08f3
set celery conf to avoid deprecation warning on serializer
ymh <ymh.work@gmail.com>
parents:
62
diff
changeset
|
19 |
CELERY_TASK_SERIALIZER = 'json' |
|
9d45f0db08f3
set celery conf to avoid deprecation warning on serializer
ymh <ymh.work@gmail.com>
parents:
62
diff
changeset
|
20 |
CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml'] |
|
91
59450d864881
add task indicator + some cleaning tasks
ymh <ymh.work@gmail.com>
parents:
78
diff
changeset
|
21 |
CELERY_DISABLE_RATE_LIMITS = True |