TangoDeviceNameValidator
¶

-
class
TangoDeviceNameValidator
[source]¶ Bases:
taurus.core.taurusvalidator.TaurusDeviceNameValidator
Validator for Tango device names. Apart from the standard named groups (scheme, authority, path, query and fragment), the following named groups are created:
- devname: device name (either alias or slashed name)
- [_devalias]: device alias
- [_devslashname]: device name in slashed (a/b/c) form
- [host] as in
TangoAuthorityNameValidator
- [port] as in
TangoAuthorityNameValidator
Note: brackets on the group name indicate that this group will only contain a string if the URI contains it.
-
fragment
= '(?!)'¶
-
getNames
(fullname, factory=None, queryAuth=True)[source]¶ reimplemented from
TaurusDeviceNameValidator
. It accepts an extra keyword arg queryAuth which, if set to False, will prevent the validator from trying to query a TaurusAuthority to obtain missing info such as the devslashname <–> devalias correspondence.
-
getUriGroups
(name, strict=None)[source]¶ Reimplementation of getUriGroups to fix the host and authority name using fully qualified domain name for the host.
-
nonStrictNamePattern
¶ In non-strict mode, allow double-slash even if there is no Authority. (e.g., “tango://a/b/c” passes this non-strict form)
-
path
= '/?(?P<devname>((?P<_devalias>[^/?#:]+)|(?P<_devslashname>[^/?#:]+/[^/?#:]+/[^/?#:]+)))'¶
-
query
= '(?!)'¶
-
scheme
= 'tango'¶