@register.function
@jinja2.contextfunction
def hub_breadcrumbs(context, addon=None, items=None, add_default=False):
 crumbs = [(reverse('ecosystem.landing'), _('Developers'))]
 title = _('My Submissions')
 link = reverse('mkt.developers.apps')
 if addon:
  if ((not addon) and (not items)):
   crumbs.append((None, title))
  else:
   crumbs.append((link, title))
  if items:
   url = addon.get_dev_url()
  else:
   url = None
  crumbs.append((url, addon.name))
 if items:
  crumbs.extend(items)
 if (len(crumbs) == 1):
  crumbs = []
 return mkt_breadcrumbs(context, items=crumbs)

@ register . function @ jinja2 . contextfunction def hub_breadcrumbs ( context , addon = None , items = None , add_default = False ) : crumbs = [ ( reverse ( 'ecosystem.landing' ) , _ ( 'Developers' ) ) ] title = _ ( 'My Submissions' ) link = reverse ( 'mkt.developers.apps' ) if addon : if ( ( not addon ) and ( not items ) ) : crumbs . append ( ( None , title ) ) else : crumbs . append ( ( link , title ) ) if items : url = addon . get_dev_url ( ) else : url = None crumbs . append ( ( url , addon . name ) ) if items : crumbs . extend ( items ) if ( len ( crumbs ) == 1 ) : crumbs = [ ] return mkt_breadcrumbs ( context , items = crumbs )
wrapper function for breadcrumbs .