'Build breadcrumbs template'

def set_breadcrumbs(self, context):

    if self.breadcrumbs:
        context.parents = frappe.safe_eval(self.breadcrumbs, {u'_': _})
    if (not (u'no_breadcrumbs' in context)):
        if (u'<!--    no-breadcrumbs    -->' in context.main_section):
            context.no_breadcrumbs = 1
