def on_trash(self): # delete entry from Table of Contents of other pages WebsiteGenerator.on_trash(self) webnotes.conn.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 webnotes.webutils import clear_cache clear_cache()
def on_trash(self): webnotes.conn.sql("""delete from tabBin where item_code=%s""", self.doc.item_code) WebsiteGenerator.on_trash(self)
def on_trash(self): webnotes.conn.sql("""delete from tabBin where item_code=%s""", self.doc.item_code) WebsiteGenerator.on_trash(self)