forked from gateway4labs/labmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py.dist
90 lines (75 loc) · 2.35 KB
/
config.py.dist
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
import os
SAML_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), '/labmanager/saml_auth/saml')
# Have you run... "pip install git+https://github.com/gateway4labs/rlms_weblabdeusto.git" first?
RLMS = ['weblabdeusto','unr','ilabs','phet','vish','quvis','concord','maplesoft', 'virtualbiologylab', 'vascak', 'chemcollective']
# Where will the admin error notification mails come from.
SENDER_ADDR = "[email protected]"
# SMTP Server through which to send mails.
SMTP_SERVER = None
# List of Admins to send mails to when an error occurs.
ADMINS = []
# Use in the context of the Go-Lab project (which has partially funded this project; see http://www.go-lab-project.eu/ )
GOLAB = False
ENGINE = 'sqlite'
if ENGINE == 'mysql':
USERNAME = 'labmanager'
PASSWORD = 'labmanager'
DBNAME = 'labmanager'
HOST = 'localhost'
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://%s:%s@%s/%s" % (USERNAME, PASSWORD, HOST, DBNAME)
SQLALCHEMY_POOL_RECYCLE = 3600
else:
SQLALCHEMY_DATABASE_URI = "sqlite:///database.db"
#
# Flask configuration
#
DEBUG = True
SECRET_KEY = 'secret'
DEBUGGING_REQUESTS = False
SESSION_COOKIE_PATH = '/' # To avoid conflicts with other deployments
WEBLABDEUSTO_LABS = {
'aquarium@Aquatic experiments' : [
{
'name' : 'ball-blue',
'description' : 'Blue ball'
},
{
'name' : 'ball-white',
'description' : 'White ball'
},
{
'name' : 'ball-yellow',
'description' : 'Yellow ball'
},
{
'name' : 'ball-red',
'description' : 'Red ball'
},
{
'name' : 'camera',
'description' : 'Main widget with two cameras'
},
{
'name' : 'camera1',
'description' : 'Camera pointing to the aquarium'
},
{
'name' : 'camera2',
'description' : 'Camera pointing to the pulley system'
},
], # aquarium
'incubator@Farm experiments' : [
{
'name' : 'egg1',
'description' : 'First egg',
},
{
'name' : 'egg2',
'description' : 'Second egg',
},
{
'name' : 'egg3',
'description' : 'Third egg',
},
],
}