forked from viur-framework/viur-vi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
100 lines (71 loc) · 2.13 KB
/
Copy pathconfig.py
File metadata and controls
100 lines (71 loc) · 2.13 KB
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
#-*- coding: utf-8 -*-
from vi import html5
from vi.framework.event import EventDispatcher
from .i18n import translate
from .safeeval import SafeEval
conf = {
# Vi version number
"vi.version": (3, 0, 0),
# Appendix to version
"vi.version.appendix": "dev",
# ViUR core name
"vi.viur": "ViUR-core",
# ViUR vi name
"vi.name": "ViUR-vi",
# Title delimiter
"vi.title.delimiter": " - ",
# Which access rights are required to open the Vi?
"vi.access.rights": ["admin", "root"],
# Context access variable prefix
"vi.context.prefix": "",
# Context action title fields
"vi.context.title.bones": ["name"],
# Global holder to main configuration taken from the server
"mainConfig": None,
# Global holder to main admin window
"mainWindow": None,
# Exposed server configuration
"server": {},
# ViUR server version number
"core.version": None,
# Modules list
"modules": {"_tasks": {"handler": "singleton", "name": "Tasks"}},
# Callable tasks
"tasks": {"server": [], "client": []},
# Language settings
"currentLanguage": "de",
"defaultLanguage": "de",
# Global holder to the currently logged-in user
"currentUser": None,
# A value displayed as "empty value"
"emptyValue": translate("-"),
# Event dispatcher for initial startup Hash
"initialHashEvent": EventDispatcher("initialHash"),
# Actions in the top level bar
"toplevelactions": ["log", "tasks", "userstate", "logout"],
# Number of rows to fetch in list widgets
"batchSize": 30,
# Show bone names instead of description
"showBoneNames": False,
# Globally enable/disable dataset preview in lists
"internalPreview": True,
# Fallback default preview path template (if set None, adminInfo.preview only takes place)
"defaultPreview": None, # "/{{module}}/view/{{key}}"
# Max number of entries to show in multiple Bones
"maxMultiBoneEntries": 5,
# Global ViUR SafeEval interpreter instance
"safeEvalInterpreter": SafeEval(
{
"format": str.format,
"str": str,
"int": int,
"float": float
}
),
# Cached selector widgets on relationalBones for re-use
"selectors": {},
"updateParams": None,
"cacheObj": {},
"indexeddb":None,
"logAmount":50
}