forked from mladenpetr/VolonterskiSati
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
115 lines (92 loc) · 2.45 KB
/
constants.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
class Sekcije:
BIKE = 'Bike'
DISCO = 'Disco'
DRAMSKA = 'Dramska'
FOTO = 'Foto'
GLAZBENA = 'Glazbena'
PLANINARSKA = 'Pijandure'
RACUNARSKA = 'Računarska'
TEHNICKA = 'Tech'
VIDEO = 'Video'
SVI = 'Svi'
class Timovi:
PR = 'Pr'
DIZAJN = 'Dizajn'
class Iskaznice:
CRVENA = 0
NARANCASTA = 1
PLAVA = 2
class UserDBIndex:
ID = 0
IME = 1
PREZIME = 2
NADIMAK = 3
OIB = 4
MOBITEL = 5
DATUM_RODENJA = 6
DATUM_UCLANJENJA = 7
BROJ_ISKAZNICE = 8
EMAIL = 9
FAKS = 10
ADRESA = 11
VELICINA_MAJICE = 12
AKTIVAN = 13
DATUM_DEAKTIVACIJE = 14
class ActivityDBIndex:
ID = 0
NAZIV = 1
OPIS = 2
DATUM = 3
SEKCIJA = 4
VRSTA_AKTIVNOSTI = 5
class ActivityTypeDBIndex:
ID = 0
NAZIV = 1
OPIS = 2
SEKCIJA = 3
class AccountsDBIndex:
ID = 0
USERNAME = 1
PASSWORD = 2
ACCESS_LEVEL = 3
SEKCIJA = 4
class ShirtSizes:
MXXL = 'Muški XXL'
MXL = 'Muški XL'
ML = 'Muški L'
MM = 'Muški M'
MS = 'Muški S'
ZXL = 'Ženski XL'
ZL = 'Ženski L'
ZM = 'Ženski M'
ZS = 'Ženski S'
ZXS = 'Ženski XS'
class AccessLevels:
ADMIN = 0
SAVJETNIK = 1
NARANCASTI_CLAN = 2
PLAVI_CLAN = 3
access_levels_string = {
ADMIN: 'Administrator',
SAVJETNIK: 'Savjetnik',
NARANCASTI_CLAN: 'Narančasti član',
PLAVI_CLAN: 'Plavi član'
}
class InviteCodes:
INVITE_CODE_ADMIN = "pbkdf2:sha256:50000$CV4TAYsJ$f05d7ba9164169993524047ef2dbf38f1cb4deb2e7a34251e0d8f212442c182a"
INVITE_CODE_SAVJETNIK = "pbkdf2:sha256:50000$zZCHObnJ$1463be39bb7a35b05e4ae4102ea717f0f8cdeef7fe2ef2f2ea2958674b44eb43"
INVITE_CODE_NARANCASTI = "pbkdf2:sha256:50000$bV8W4EQ1$625159b3c3715a7563e5f39daadb19daad54e8ef419e0d83d84043862797236f"
INVITE_CODE_PLAVI = "pbkdf2:sha256:50000$orUxUE5t$d6ff52038d9b9329cce5fed953ca9cb4cde226adc5c8bac1e2d3f48cd0f20b2b"
INVITE_CODES_LIST = [INVITE_CODE_ADMIN, INVITE_CODE_SAVJETNIK, INVITE_CODE_NARANCASTI, INVITE_CODE_PLAVI]
invite_codes_roles = {
INVITE_CODE_ADMIN: AccessLevels.ADMIN,
INVITE_CODE_SAVJETNIK: AccessLevels.SAVJETNIK,
INVITE_CODE_NARANCASTI: AccessLevels.NARANCASTI_CLAN,
INVITE_CODE_PLAVI: AccessLevels.PLAVI_CLAN
}
DATABASE_PATH = "ksetBazaClanova.db"
MEMBERS_PER_PAGE = 30
ACTIVITIES_PER_PAGE = 30
ACTIVITY_TYPES_PER_PAGE = 30
ARCHIVED_MEMBERS_PER_PAGE = 30
EXPORT_FILE_FOLDER = "/tmp/"