"""This module holds the constants of the ``trainings`` app."""

from extended_choices import Choices

ACTIVITY_LAUNCH_ACTION = 'launch_module'


class LockableFields:
    """Lockable fields in the training redis model."""
    DUPLICATE_TO_MEMBER = 'duplicate_to_member'
    CREATE_DRAFT = 'create_draft'


MODULE_CHOICES = Choices(
    ('BRAINSTORMERTEMPLATE', 'brainstormer', 'brainstormer'),
    ('DOCUMENT', 'document', 'document'),
    ('EVALUATION', 'spider_graph', 'spider_graph'),
    ('ROLEPLAY', 'roleplay', 'roleplay'),
    ('WORKSHOP', 'workshop', 'workshop')
)

TRAINING_SESSION_USER_TIMEOUT = 15
