示例#1
0
	def get_context(self, context):
		if is_markdown(context.content):
			context.content = markdown2.markdown(context.content)
		context.login_required = True
		context.level_class = get_level_class(self.level)
		context.comment_list = get_comment_list(self.doctype, self.name)
		context.children = get_category_sidebar()
		context.parents = self.get_parents(context)
 def get_context(self, context):
     if is_markdown(context.content):
         context.content = markdown(context.content)
     context.login_required = True
     context.level_class = get_level_class(self.level)
     context.comment_list = get_comment_list(self.doctype, self.name)
     context.children = get_category_sidebar()
     context.parents = self.get_parents(context)
示例#3
0
 def get_context(self, context):
     if is_markdown(context.content):
         context.content = markdown(context.content)
     context.login_required = True
     context.category = frappe.get_doc("Help Category", self.category)
     context.level_class = get_level_class(self.level)
     context.comment_list = get_comment_list(self.doctype, self.name)
     context.show_sidebar = True
     context.sidebar_items = get_sidebar_items()
     context.parents = self.get_parents(context)
示例#4
0
	def get_context(self, context):
		if is_markdown(context.content):
			context.content = markdown(context.content)
		context.login_required = True
		context.category = frappe.get_doc('Help Category', self.category)
		context.level_class = get_level_class(self.level)
		context.comment_list = get_comment_list(self.doctype, self.name)
		context.show_sidebar = True
		context.sidebar_items = get_sidebar_items()
		context.parents = self.get_parents(context)