'validate url in top bar items'

def validate_footer_items(self):

    for footer_item in self.get(u'footer_items'):
        if footer_item.parent_label:
            parent_label_item = self.get(u'footer_items', {u'label': footer_item.parent_label})
            if (not parent_label_item):
                frappe.throw(_(u'{0}    does    not    exist    in    row    {1}').format(footer_item.parent_label, footer_item.idx))
            elif ((not parent_label_item[0]) or parent_label_item[0].url):
                frappe.throw(_(u'{0}    in    row    {1}    cannot    have    both    URL    and    child    items').format(footer_item.parent_label, footer_item.idx))
