-
Notifications
You must be signed in to change notification settings - Fork 12
/
storyboard.py
62 lines (54 loc) · 1.96 KB
/
storyboard.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
#############################################################################
# Storyboard for CyLMS
#############################################################################
class Storyboard:
# Config file constants
## Overall constants
DEFAULT_CONFIG_FILE = "config_file"
CONFIG_SECTION = "config"
## Setting names
CONFIG_LMS_HOST = "lms_host"
CONFIG_LMS_REPOSITORY = "lms_repository"
CONFIG_COURSE_NAME = "course_name"
CONFIG_SECTION_ID = "section_id"
CONFIG_ENABLE_VNC = "enable_vnc"
CONFIG_RANGE_DIRECTORY = "range_directory"
# Content description file constants
## Top section about training
KEY_TRAINING = "training"
KEY_ID = "id"
KEY_RESOURCES = "resources"
KEY_TITLE = "title"
KEY_OVERVIEW = "overview"
KEY_LEVEL = "level"
KEY_QUESTIONS = "questions"
## Sub-section about questions
#KEY_ID = "id"
KEY_TYPE = "type"
VALUE_TYPE_FILL_IN = "fill-in"
VALUE_TYPE_CHOICE = "choice"
VALUE_TYPE_NUMERIC = "numeric"
KEY_BODY = "body"
KEY_CHOICES = "choices"
KEY_ANSWER = "answer"
KEY_HINTS = "hints"
# Tags in SCORM package
## Tag below appears in Template/imsmanifest.xml
TAG_TRAINING_ID = "training_id"
## Tags below appear in Template/shared/assessmenttemplate.html
TAG_SHOW_RANGE_BUTTON = "tag_show_range_button"
TAG_TRAINING_LEVEL = "tag_training_level"
TAG_TRAINING_TITLE = "tag_training_title"
TAG_TRAINING_OVERVIEW = "tag_training_overview"
TAG_PORT_FILENAME = "tag_port_filename"
## Tags below appear in Template/Playing/questions.js
TAG_QUESTION_ID = "questionId"
TAG_QUESTION_BODY = "questionBody"
TAG_QUESTION_TYPE = "questionType"
TAG_QUESTION_ANSWER = "questionAnswer"
TAG_QUESTION_CORRECT_ANSWER = "questionCorrectAnswer"
TAG_QUESTION_HINT = "questionHint"
TAG_QUESTION_OBJECTIVE_ID = "questionObjectiveId"
# Other constants
ACCESS_RANGE_BASE_PORT = 3000
VNC_BASE_PORT = 5900