def _get_seo_parent_title(slug_dict, document_locale):
 if slug_dict['seo_root']:
  try:
   seo_root_doc = Document.objects.get(locale=document_locale, slug=slug_dict['seo_root'])
   return (u' - %s' % seo_root_doc.title)
  except Document.DoesNotExist:
   pass
 return ''

def _get_seo_parent_title ( slug_dict , document_locale ) : if slug_dict [ 'seo_root' ] : try : seo_root_doc = Document . objects . get ( locale = document_locale , slug = slug_dict [ 'seo_root' ] ) return ( u' - %s' % seo_root_doc . title ) except Document . DoesNotExist : pass return ''
get parent-title information for seo purposes .