Beispiel #1
0
    def on_module_enabled():
        resource.Registry.register(resources_display.ResourceCourseSettings)
        resource.Registry.register(resources_display.ResourceUnit)
        resource.Registry.register(resources_display.ResourceAssessment)
        resource.Registry.register(resources_display.ResourceLink)
        resource.Registry.register(resources_display.ResourceLesson)
        resource.Registry.register(resources_display.ResourceSAQuestion)
        resource.Registry.register(resources_display.ResourceMCQuestion)
        resource.Registry.register(resources_display.ResourceQuestionGroup)
        resource.Registry.register(utils.ResourceHtmlHook)

        outline.on_module_enabled()
        assets.on_module_enabled()
        admin_preferences_editor.on_module_enabled()
        settings.on_module_enabled()
Beispiel #2
0
    def on_module_enabled():
        resource.Registry.register(resources_display.ResourceCourseSettings)
        resource.Registry.register(resources_display.ResourceUnit)
        resource.Registry.register(resources_display.ResourceAssessment)
        resource.Registry.register(resources_display.ResourceLink)
        resource.Registry.register(resources_display.ResourceLesson)
        resource.Registry.register(resources_display.ResourceSAQuestion)
        resource.Registry.register(resources_display.ResourceMCQuestion)
        resource.Registry.register(resources_display.ResourceQuestionGroup)
        resource.Registry.register(utils.ResourceHtmlHook)

        outline.on_module_enabled()
        assets.on_module_enabled()
        admin_preferences_editor.on_module_enabled()
        settings.on_module_enabled()
    def on_module_enabled():
        resource.Registry.register(resources_display.ResourceCourseSettings)
        resource.Registry.register(resources_display.ResourceUnit)
        resource.Registry.register(resources_display.ResourceAssessment)
        resource.Registry.register(resources_display.ResourceLink)
        resource.Registry.register(resources_display.ResourceLesson)
        resource.Registry.register(resources_display.ResourceSAQuestion)
        resource.Registry.register(resources_display.ResourceMCQuestion)
        resource.Registry.register(resources_display.ResourceQuestionGroup)
        resource.Registry.register(utils.ResourceHtmlHook)

        outline.on_module_enabled(custom_module, permissions)
        assets.on_module_enabled()
        admin_preferences_editor.on_module_enabled()
        course_roles.on_module_enabled(custom_module, permissions)
        settings.on_module_enabled(custom_module, permissions)
        unit_lesson_editor.on_module_enabled(custom_module, permissions)

        roles.Roles.register_permissions(custom_module, permissions_callback)
Beispiel #4
0
    def on_module_enabled():
        resource.Registry.register(resources_display.ResourceCourseSettings)
        resource.Registry.register(resources_display.ResourceUnit)
        resource.Registry.register(resources_display.ResourceAssessment)
        resource.Registry.register(resources_display.ResourceLink)
        resource.Registry.register(resources_display.ResourceLesson)
        resource.Registry.register(resources_display.ResourceSAQuestion)
        resource.Registry.register(resources_display.ResourceMCQuestion)
        resource.Registry.register(resources_display.ResourceQuestionGroup)
        resource.Registry.register(utils.ResourceHtmlHook)

        outline.on_module_enabled(custom_module)
        assets.on_module_enabled()
        admin_preferences_editor.on_module_enabled()
        availability.on_module_enabled(custom_module, permissions)
        course_roles.on_module_enabled(custom_module, permissions)
        lessons.on_module_enabled(custom_module)
        settings.on_module_enabled(custom_module, permissions)
        unit_lesson_editor.on_module_enabled(custom_module, permissions)

        roles.Roles.register_permissions(custom_module, permissions_callback)