def _breadcrumbs(location=None, first_caption='Planet Earth'):
 breadcrumbs = [(first_caption, reverse(locations))]
 if (location is not None):
  for loc in location.path:
   url = reverse(locations, args=(loc.uid,))
   breadcrumbs.append((loc, url))
 return breadcrumbs

def _breadcrumbs ( location = None , first_caption = 'Planet Earth' ) : breadcrumbs = [ ( first_caption , reverse ( locations ) ) ] if ( location is not None ) : for loc in location . path : url = reverse ( locations , args = ( loc . uid , ) ) breadcrumbs . append ( ( loc , url ) ) return breadcrumbs
return the breadcrumb trail leading to location .