915b34391c
* chore: Added isort to pre-commit config * chore: Sort imports with isort * chore: Clean up imports with pycln * chore: Sort imports with isort * chore: Fix import issues * chore: Clean up sider issues * chore: Remove import errors from flake8 ignore list * chore: Clean up lint issues
20 lines
541 B
Python
20 lines
541 B
Python
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
def get_context(context):
|
|
course = frappe.get_doc('Course', frappe.form_dict.course)
|
|
sidebar_title = course.name
|
|
|
|
context.no_cache = 1
|
|
context.show_sidebar = True
|
|
course = frappe.get_doc('Course', frappe.form_dict.course)
|
|
course.has_permission('read')
|
|
context.doc = course
|
|
context.sidebar_title = sidebar_title
|
|
context.intro = course.course_intro
|