示例#1
0
    def on_trash(self):
        # delete entry from Table of Contents of other pages
        WebsiteGenerator.on_trash(self)

        frappe.db.sql(
            """delete from `tabTable of Contents`
			where web_page=%s""", self.doc.name)

        # clear all cache if it has toc
        if self.doclist.get({"parentfield": "toc"}):
            from frappe.website.render import clear_cache
            clear_cache()
示例#2
0
 def on_trash(self):
     NestedSet.on_trash(self)
     WebsiteGenerator.on_trash(self)
示例#3
0
	def on_trash(self):
		NestedSet.on_trash(self)
		WebsiteGenerator.on_trash(self)
		self.delete_child_item_groups_key()
示例#4
0
	def on_trash(self):
		NestedSet.on_trash(self)
		WebsiteGenerator.on_trash(self)