def points_to_document_view(url, required_locale=None):
 try:
  return (not (not _doc_components_from_url(url, required_locale=required_locale)))
 except _NotDocumentView:
  return False

def points_to_document_view ( url , required_locale = None ) : try : return ( not ( not _doc_components_from_url ( url , required_locale = required_locale ) ) ) except _NotDocumentView : return False
return whether a url reverses to the document view .