-
Notifications
You must be signed in to change notification settings - Fork 1
/
registry.py
65 lines (56 loc) · 2.99 KB
/
registry.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
# how do we inject this into records registry?
# for now, hardcode the import to this from AssessmentSession and AssessmentResultsSession...
# perhaps handle it in a runtime config, later.
from ..osid import registry as osid_registry
ASSESSMENT_PART_GENUS_TYPES = {
'fbw-specify-lo': {
'authority': 'ODL.MIT.EDU',
'namespace': 'assessment-part-genus-type',
'identifier': 'fbw-specify-lo',
'display_name': 'Specify the LO only',
'display_label': 'Specify the LO only',
'description': 'Specify the LO only for this section',
'domain': 'assessment_authoring.AssessmentPart'},
}
ASSESSMENT_PART_RECORD_TYPES = {
'scaffold-down': {
'authority': 'ODL.MIT.EDU',
'namespace': 'assessment-part-record-type',
'identifier': 'scaffold-down',
'display_name': 'Assessment Part that scaffolds down when given incorrect item responses',
'display_label': 'Assessment Part that scaffolds down when given incorrect item responses',
'description': 'Assessment Part that scaffolds down when given incorrect item responses',
'domain': 'assessment_authoring.AssessmentPart',
'module_path': 'records.fbw_dlkit_adapters.magic_parts.assessment_part_records',
'object_record_class_name': 'ScaffoldDownAssessmentPartRecord',
'form_record_class_name': 'ScaffoldDownAssessmentPartFormRecord'},
}
ASSESSMENT_PART_RECORD_TYPES.update(osid_registry.__dict__.get('OSID_OBJECT_RECORD_TYPES', {}))
ITEM_RECORD_TYPES = {
'multi-choice-randomized': {
'authority': 'ODL.MIT.EDU',
'namespace': 'item-record-type',
'identifier': 'multi-choice-randomized',
'display_name': 'Item with randomized choice order',
'display_label': 'Item with randomized choice order',
'description': 'Assessment MultipleChoice Item record with randomized choice order',
'domain': 'assessment.Item',
'module_path': 'records.fbw_dlkit_adapters.multi_choice_questions.randomized_questions',
'object_record_class_name': 'MagicRandomizedMCItemRecord',
'form_record_class_name': 'MagicRandomizedMCItemFormRecord'},
}
ITEM_RECORD_TYPES.update(osid_registry.__dict__.get('OSID_OBJECT_RECORD_TYPES', {}))
QUESTION_RECORD_TYPES = {
'multi-choice-randomized': {
'authority': 'ODL.MIT.EDU',
'namespace': 'question-record-type',
'identifier': 'multi-choice-randomized',
'display_name': 'Question with randomized choice order',
'display_label': 'Question with randomized choice order',
'description': 'Assessment Question record with randomized choice order',
'domain': 'assessment.Question',
'module_path': 'records.fbw_dlkit_adapters.multi_choice_questions.randomized_questions',
'object_record_class_name': 'MultiChoiceRandomizeChoicesQuestionRecord',
'form_record_class_name': 'MultiChoiceRandomizeChoicesQuestionFormRecord'},
}
QUESTION_RECORD_TYPES.update(osid_registry.__dict__.get('OSID_OBJECT_RECORD_TYPES', {}))