brotherton-erpnext/erpnext/templates/pages/courses.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
542 B
Python
Raw Normal View History

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
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