def get_ancestors_of(doctype, name):
	lft, rgt = frappe.db.get_value(doctype, name, ["lft", "rgt"])
	result = frappe.db.sql_list("""select name from `tab%s`
		where lft<%s and rgt>%s order by lft desc""" % (doctype, "%s", "%s"), (lft, rgt))
	return result or []
Convert a string of 'currency units' to 'protocol units'. For instance
dataset/ETHPy150Open frappe/frappe/frappe/utils/nestedset.py/get_ancestors_of--crossover with--dataset/ETHPy150Open priestc/moneywagon/moneywagon/core.py/currency_to_protocol