Module ImportFrom alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore ListLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore BoolOpOr NameLoad ListLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return Expr Call NameLoad NameLoad NameLoad Assign NameStore NameLoad If CompareEq NameLoad Str body If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass orelse Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body If NameLoad body If UnaryOpNot NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr ListLoad If CompareIn Str NameLoad body Expr Call NameLoad NameLoad If CompareIn Str NameLoad body Expr Call NameLoad NameLoad If CompareIn Str NameLoad body Expr Call NameLoad NameLoad If CompareIn Str NameLoad body Expr Call NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad NameLoad Str NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareNotIn SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Index Num TupleLoad Str Str Str body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpAnd CompareNotEq NameLoad Str CompareEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TupleLoad NameLoad If NameLoad body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Str If UnaryOpNot CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body AugAssignAdd NameStore Call NameLoad Str For NameStore Call NameLoad Call NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Str Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad For TupleStore NameStore NameStore NameStore NameLoad body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict NameLoad AttributeLoad NameLoad attr ListLoad Str Str Str Str keyword NameLoad If BoolOpAnd NameLoad CompareNotEq BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpOr BoolOpAnd CompareEq NameLoad Str CompareLt AttributeLoad NameLoad attr Num BoolOpAnd CompareEq NameLoad Str CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str For NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr ListLoad body If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str Str Str body Continue Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpOr BoolOpAnd CompareEq NameLoad Str CompareLt AttributeLoad NameLoad attr Num BoolOpAnd CompareEq NameLoad Str CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad body If BoolOpOr BoolOpAnd CompareEq NameLoad Str CompareLt AttributeLoad NameLoad attr Num BoolOpAnd CompareEq NameLoad Str CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias If BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str NameLoad body Return Expr Call AttributeLoad Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list
N/A __future__ unicode_literals N/A frappe N/A frappe.model.meta frappe.model.dynamic_links get_dynamic_link_map N/A frappe.defaults frappe.utils.file_manager remove_all frappe _ frappe.model.naming revert_series_if_last delete_doc N/A N/A doctype name force ignore_doctypes for_reload ignore_permissions flags ignore_on_trash N/A None None 0 None False False None False N/A N/A 
		Deletes a doc(dt, dn) and validates if it is not submitted and not linked in a live record
	 N/A N/A ignore_doctypes N/A N/A ignore_doctypes N/A N/A N/A doctype N/A N/A doctype N/A N/A N/A frappe form_dict get dt N/A name N/A N/A N/A frappe form_dict get dn N/A names name N/A N/A isinstance name basestring N/A N/A names N/A name N/A name N/A names N/A N/A N/A N/A N/A N/A N/A frappe db exists doctype name N/A N/A N/A N/A remove_all doctype name N/A doc None N/A N/A doctype DocType N/A N/A for_reload N/A N/A N/A N/A doc N/A N/A frappe get_doc doctype name N/A N/A N/A N/A frappe DoesNotExistError N/A N/A N/A N/A N/A N/A doc run_method before_reload N/A N/A N/A N/A N/A frappe db sql delete from `tabCustom Field` where dt = %s name N/A N/A N/A N/A frappe db sql delete from `tabCustom Script` where dt = %s name N/A N/A N/A N/A frappe db sql delete from `tabProperty Setter` where doc_type = %s name N/A N/A N/A N/A frappe db sql delete from `tabReport` where ref_doctype=%s name N/A N/A delete_from_table doctype name ignore_doctypes None N/A N/A doc N/A N/A frappe get_doc doctype name N/A N/A for_reload N/A N/A ignore_permissions N/A N/A N/A flags N/A N/A flags N/A N/A N/A flags N/A ignore_permissions ignore_permissions N/A flags N/A N/A N/A N/A N/A doc flags update flags N/A N/A check_permission_and_not_submitted doc N/A N/A ignore_on_trash N/A N/A N/A N/A doc run_method on_trash N/A N/A N/A doc run_method on_change N/A dynamic_linked_doctypes N/A N/A df parent N/A df N/A N/A N/A get_dynamic_link_map get N/A doc doctype N/A N/A N/A ToDo dynamic_linked_doctypes N/A N/A N/A delete_linked_todos doc N/A N/A Communication dynamic_linked_doctypes N/A N/A N/A delete_linked_communications doc N/A N/A DocShare dynamic_linked_doctypes N/A N/A N/A delete_shared doc N/A N/A Email Unsubscribe dynamic_linked_doctypes N/A N/A N/A delete_email_subscribe doc N/A N/A force N/A N/A N/A check_if_doc_is_linked doc N/A N/A check_if_doc_is_dynamically_linked doc N/A N/A update_naming_series doc N/A N/A delete_from_table doctype name ignore_doctypes doc N/A N/A N/A doc run_method after_delete N/A doc N/A N/A N/A N/A N/A N/A doc notify_update N/A N/A insert_feed doc N/A N/A N/A ImportError N/A N/A N/A N/A N/A N/A frappe defaults clear_default parenttype User Permission key doctype value name N/A update_naming_series N/A N/A doc N/A N/A N/A N/A N/A doc meta autoname N/A N/A N/A N/A N/A N/A N/A doc meta autoname startswith naming_series: N/A getattr doc naming_series None N/A N/A N/A revert_series_if_last N/A doc naming_series N/A doc name N/A N/A N/A N/A N/A N/A N/A N/A doc meta autoname split : N/A 0 N/A Prompt field hash N/A N/A N/A revert_series_if_last N/A N/A doc meta autoname N/A doc name N/A delete_from_table N/A N/A doctype name ignore_doctypes doc N/A N/A N/A N/A N/A doctype DocType N/A doctype name N/A N/A N/A N/A N/A frappe db sql delete from `tabSingles` where doctype=%s name N/A N/A N/A N/A N/A frappe db sql N/A delete from `tab%s` where name=%s N/A N/A N/A N/A frappe db escape doctype %s N/A name N/A doc N/A N/A tables N/A N/A d options N/A d N/A N/A N/A doc meta get_table_fields N/A get_table_fields N/A N/A field_doctype N/A N/A N/A N/A N/A N/A frappe db sql_list N/A N/A select options from `tab{}` where fieldtype='Table'
				and parent=%s format field_doctype doctype N/A N/A tables N/A get_table_fields DocField N/A N/A N/A N/A N/A frappe flags in_install frappe N/A N/A tables N/A get_table_fields Custom Field N/A t N/A list N/A set tables N/A N/A N/A t ignore_doctypes N/A N/A N/A N/A N/A frappe db sql N/A delete from `tab%s` where parenttype=%s and parent = %s N/A t %s %s N/A doctype name N/A check_permission_and_not_submitted N/A N/A doc N/A N/A N/A N/A N/A N/A N/A doc flags ignore_permissions N/A N/A N/A frappe session user Administrator N/A N/A N/A doc has_permission delete N/A N/A N/A N/A frappe msgprint N/A N/A N/A _ User not allowed to delete {0}: {1} format N/A doc doctype N/A doc name raise_exception True N/A N/A N/A doc docstatus 1 N/A N/A N/A N/A frappe msgprint N/A N/A N/A _ {0} {1}: Submitted Record cannot be deleted. format N/A doc doctype N/A doc name raise_exception True N/A check_if_doc_is_linked N/A N/A doc method N/A Delete N/A N/A 
		Raises excption if the given doc(dt, dn) is linked in another record.
	 frappe.model.rename_doc get_link_fields N/A link_fields N/A get_link_fields N/A doc doctype N/A link_fields N/A N/A N/A lf N/A parent N/A lf N/A fieldname N/A lf N/A issingle N/A lf link_fields N/A N/A link_dt link_field issingle link_fields N/A N/A N/A issingle N/A N/A item N/A N/A N/A frappe db get_value link_dt N/A link_field N/A doc name N/A name parent parenttype docstatus as_dict True N/A N/A item N/A N/A N/A item parent N/A item name N/A doc name N/A N/A N/A method Delete N/A N/A item docstatus 2 N/A N/A method Cancel N/A N/A item docstatus 1 N/A N/A N/A N/A frappe throw N/A N/A N/A _ Cannot delete or cancel because {0} {1} is linked with {2} {3} format N/A doc doctype N/A doc name N/A N/A item parent N/A item parenttype link_dt N/A N/A item parent N/A item name N/A frappe LinkExistsError N/A check_if_doc_is_dynamically_linked N/A N/A doc method N/A Delete N/A N/A Raise `frappe.LinkExistsError` if the document is dynamically linked N/A df N/A N/A N/A get_dynamic_link_map get N/A doc doctype N/A N/A N/A N/A N/A df parent N/A Communication ToDo DocShare Email Unsubscribe N/A N/A N/A meta N/A N/A frappe get_meta N/A df parent N/A N/A meta issingle N/A N/A refdoc N/A N/A N/A frappe db get_singles_dict N/A df parent N/A N/A N/A N/A N/A refdoc get N/A df options N/A doc doctype N/A N/A N/A refdoc get N/A df fieldname N/A doc name N/A N/A N/A method Delete N/A N/A refdoc docstatus 2 N/A N/A method Cancel N/A N/A refdoc docstatus 1 N/A N/A N/A N/A frappe throw N/A N/A N/A _ Cannot delete or cancel because {0} {1} is linked with {2} {3} format N/A doc doctype N/A doc name N/A df parent N/A frappe LinkExistsError N/A N/A refdoc N/A N/A N/A frappe db sql N/A N/A select name, docstatus from `tab{parent}` where
				{options}=%s and {fieldname}=%s format df N/A N/A doc doctype N/A doc name as_dict True N/A N/A N/A N/A N/A method Delete N/A N/A refdoc docstatus 2 N/A N/A method Cancel N/A N/A refdoc docstatus 1 N/A N/A N/A N/A frappe throw N/A N/A N/A _ Cannot delete or cancel because {0} {1} is linked with {2} {3} format N/A doc doctype N/A doc name N/A df parent N/A refdoc name N/A frappe LinkExistsError N/A delete_linked_todos N/A N/A doc N/A N/A N/A N/A delete_doc ToDo N/A N/A N/A frappe db sql_list select name from `tabToDo`
		where reference_type=%s and reference_name=%s N/A N/A doc doctype N/A doc name ignore_permissions True N/A delete_email_subscribe N/A N/A doc N/A N/A N/A N/A N/A N/A frappe db sql delete from `tabEmail Unsubscribe`
		where reference_doctype=%s and reference_name=%s N/A N/A doc doctype N/A doc name N/A delete_linked_communications N/A N/A doc N/A N/A N/A N/A N/A N/A frappe db sql delete from `tabCommunication`
		where
			communication_type = 'Comment'
			and reference_doctype=%s and reference_name=%s N/A N/A doc doctype N/A doc name N/A N/A N/A N/A frappe db sql update `tabCommunication`
		set reference_doctype=null, reference_name=null
		where
			communication_type = 'Communication'
			and reference_doctype=%s
			and reference_name=%s N/A N/A doc doctype N/A doc name N/A N/A N/A N/A frappe db sql update `tabCommunication`
		set link_doctype=null, link_name=null
		where link_doctype=%s and link_name=%s N/A N/A doc doctype N/A doc name N/A N/A N/A N/A frappe db sql update `tabCommunication`
		set timeline_doctype=null, timeline_name=null
		where timeline_doctype=%s and timeline_name=%s N/A N/A doc doctype N/A doc name N/A insert_feed N/A N/A doc N/A N/A frappe.utils get_fullname N/A N/A N/A N/A frappe flags in_install N/A N/A frappe flags in_import N/A getattr doc no_feed_on_delete False N/A N/A N/A N/A N/A N/A N/A frappe get_doc N/A doctype communication_type comment_type reference_doctype subject full_name Communication Comment Deleted N/A doc doctype N/A N/A {0} {1} format N/A _ N/A doc doctype N/A doc name N/A get_fullname N/A doc owner insert ignore_permissions True N/A delete_shared N/A N/A doc N/A N/A N/A N/A delete_doc DocShare N/A N/A N/A frappe db sql_list select name from `tabDocShare`
		where share_doctype=%s and share_name=%s N/A N/A doc doctype N/A doc name ignore_on_trash True N/A