work in progress: cybertools.scorm package
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1712 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
9ca359ca67
commit
76ae5d8bbf
1 changed files with 11 additions and 1 deletions
|
@ -37,4 +37,14 @@ track for each interaction and one track for all the other elements.
|
|||
... print t.data
|
||||
{'id': 'q007', 'key_prefix': 'cmi.interactions.0', 'result': 'correct'}
|
||||
{'cmi.comments_from_learner': 'Hello SCORM', 'key_prefix': ''}
|
||||
{'id': 'q009', 'key_prefix': 'cmi.interactions.1', 'result': 'incorrect'}
|
||||
{'id': 'q009', 'key_prefix': 'cmi.interactions.1', 'result': 'incorrect'}
|
||||
|
||||
Using the getValue() method we can retrieve certain values without having
|
||||
to care about the storage in different track objects.
|
||||
|
||||
>>> api.getValue('cmi.comments_from_learner')
|
||||
('Hello SCORM', '0')
|
||||
>>> api.getValue('cmi.interactions.0.id')
|
||||
('q007', '0')
|
||||
>>> api.getValue('cmi.interactions.1.result')
|
||||
('incorrect', '0')
|
||||
|
|
Loading…
Add table
Reference in a new issue