* chore: typing + fixes for content_staging * chore: typing + fixes for learning_sequences * chore: typing + fixes for content_libraries * chore: typing + fixes for new XBlock runtime * feat: type hinting more code with mypy
14 lines
377 B
Python
14 lines
377 B
Python
"""
|
|
Data structures for the XBlock Django app's python APIs
|
|
"""
|
|
from enum import Enum
|
|
|
|
|
|
class StudentDataMode(Enum):
|
|
"""
|
|
Is student data (like which answer was selected) persisted in the DB or just stored temporarily in the session?
|
|
Generally, the LMS uses persistence and Studio uses ephemeral data.
|
|
"""
|
|
Ephemeral = 'ephemeral'
|
|
Persisted = 'persisted'
|