-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
40 lines (33 loc) · 2.25 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import os
from pytz import timezone
# Config
KALEIDOS_RESOURCE_BASE_URI = "http://themis.vlaanderen.be/"
SIGNINGHUB_RESOURCE_BASE_URI = os.environ.get("SIGNINGHUB_API_URL", KALEIDOS_RESOURCE_BASE_URI).strip("/") + "/"
JOB_RESOURCE_BASE_URI = "http://mu.semte.ch/services/digital-signing/prepare-signing-flow-job/"
TIMEZONE = timezone('Europe/Brussels')
SYNC_CRON_PATTERN = os.environ.get("SYNC_CRON_PATTERN", "*/2 * * * *")
SIGNINGHUB_APP_DOMAIN = os.environ.get("SIGNINGHUB_APP_DOMAIN")
ADD_SIGNATURE_FIELD_ENABLED = os.environ.get("ADD_SIGNATURE_FIELD_ENABLED", "False").lower() in ("true", "1", "t")
SIGNATURE_FIELD_WIDTH = os.environ.get("SIGNATURE_FIELD_WIDTH", 100)
SIGNATURE_FIELD_HEIGHT = os.environ.get("SIGNATURE_FIELD_HEIGHT", 40)
# Constants
APPLICATION_GRAPH = "http://mu.semte.ch/application"
ACCESS_LEVEL_CABINET = "http://themis.vlaanderen.be/id/concept/toegangsniveau/13ae94b0-6188-49df-8ecd-4c4a17511d6d"
ACCESS_LEVEL_GOVERNMENT = "http://themis.vlaanderen.be/id/concept/toegangsniveau/634f438e-0d62-4ae4-923a-b63460f6bc46"
ACCESS_LEVEL_PUBLIC = "http://themis.vlaanderen.be/id/concept/toegangsniveau/c3de9c70-391e-4031-a85e-4b03433d6266"
JOB = {
"STATUSES": {
"SCHEDULED": "http://redpencil.data.gift/id/concept/JobStatus/scheduled",
"BUSY": "http://redpencil.data.gift/id/concept/JobStatus/busy",
"SUCCESS": "http://redpencil.data.gift/id/concept/JobStatus/success",
"FAILED": "http://redpencil.data.gift/id/concept/JobStatus/failed",
},
}
GOEDKEURINGSACTIVITEIT_RESOURCE_BASE_URI = f"{KALEIDOS_RESOURCE_BASE_URI}id/handteken-goedkeuringsactiviteit/"
WEIGERACTIVITEIT_RESOURCE_BASE_URI = f"{KALEIDOS_RESOURCE_BASE_URI}id/handteken-weigeractiviteit/"
ANNULATIEACTIVITEIT_RESOURCE_BASE_URI = f"{KALEIDOS_RESOURCE_BASE_URI}id/handteken-annulatie-activiteit/"
DOCUMENT_BASE_URI = f"{KALEIDOS_RESOURCE_BASE_URI}id/stuk/"
HANDTEKENAANGELEGENHEID_RESOURCE_BASE_URI = f"{KALEIDOS_RESOURCE_BASE_URI}id/handtekenaangelegenheid/"
HANDTEKEN_PROCEDURESTAP_RESOURCE_BASE_URI = f"{KALEIDOS_RESOURCE_BASE_URI}id/handteken-procedurestap/"
SIGN_MARKING_ACTIVITY_RESOURCE_BASE_URI = f"{KALEIDOS_RESOURCE_BASE_URI}id/handteken-markeringsactiviteit/"
MARKED_STATUS = "http://themis.vlaanderen.be/id/handtekenstatus/f6a60072-0537-11ee-bb35-ee395168dcf7"