config.py 477 Bytes
Newer Older
jens.kleineheismann's avatar
jens.kleineheismann committed
1
"""(Default) Configuration"""
jens.kleineheismann's avatar
jens.kleineheismann committed
2

jens.kleineheismann's avatar
jens.kleineheismann committed
3
from .exceptions import MissingConfigError
jens.kleineheismann's avatar
jens.kleineheismann committed
4

5
6
7
8
9
10
DEFAULTS = {
    'URL_SCHEMA': 'https://',
    'SERVER': 'kit-idm-03.scc.kit.edu',
    'BASE_URI': '/itbportal-rest-war/rest',
    'USERNAME': MissingConfigError('No username set'),
    'PASSWORD': MissingConfigError('No password set'),
11
12
    'ENABLE_POST': True,
    'ENABLE_DELETE': False,
13
}
jens.kleineheismann's avatar
jens.kleineheismann committed
14
15
16
17
18
19

SYMBOLS = {
    'GROUP_PK_ATTRIB': 'name',
    'OE_PK_ATTRIB': 'kurz',
    'USER_PK_ATTRIB': 'samaccount',
}