# `TangoAuthorityNameValidator`

digraph inheritance6a08da8794 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "TangoAuthorityNameValidator" [URL="#taurus.core.tango.tangovalidator.TangoAuthorityNameValidator",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Validator for Tango authority names. Apart from the standard named"]; "TaurusAuthorityNameValidator" -> "TangoAuthorityNameValidator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusAuthorityNameValidator" [URL="taurus.core.taurusvalidator-TaurusAuthorityNameValidator.html#taurus.core.taurusvalidator.TaurusAuthorityNameValidator",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Base class for Authority name validators."]; }

class TangoAuthorityNameValidator(*p, **k)

  Validator for Tango authority names. Apart from the standard named groups (scheme, authority, path, query and fragment), the following named groups are created:

  > - host: tango host name, without port.

  > - port: port number

  Import from `taurus.core.tango.tangovalidator` as:

      from taurus.core.tango.tangovalidator import TangoAuthorityNameValidator

  authority = '//((?P<host>([\\w\\-_]+\\.)*[\\w\\-_]+):(?P<port>\\d{1,5})|([\\w\\-_]+\\.)*[\\w\\-_]+:\\d{1,5}(,([\\w\\-_]+\\.)*[\\w\\-_]+:\\d{1,5})+)'
  default_scheme = 'tango'
  fragment = '(?!)'
  getUriGroups(name, strict=None)

    Reimplementation of getUriGroups to fix the host and authority name using fully qualified domain name for the host.

  path = '(?!)'
  query = '(?!)'
  scheme = '(tango|tango-nodb)'