2016-07-19 08:47:33 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
import frappe
|
2016-07-19 08:47:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
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
|