TangoAttributeNameValidator
¶

-
class
TangoAttributeNameValidator
[source]¶ Bases:
taurus.core.taurusvalidator.TaurusAttributeNameValidator
Validator for Tango attribute names. Apart from the standard named groups (scheme, authority, path, query and fragment), the following named groups are created:
- attrname: attribute name including device name
- _shortattrname: attribute name excluding device name
- devname: as in
TangoDeviceNameValidator
- [_devalias]: as in
TangoDeviceNameValidator
- [_devslashname]: as in
TangoDeviceNameValidator
- [host] as in
TangoAuthorityNameValidator
- [port] as in
TangoAuthorityNameValidator
- [cfgkey] same as fragment (for bck-compat use only)
Note: brackets on the group name indicate that this group will only contain a string if the URI contains it.
-
fragment
= '(?P<cfgkey>[^# ]*)'¶
-
getNames
(fullname, factory=None, queryAuth=True, fragment=False)[source]¶ Returns the complete and short names
-
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. Also allow old-style “?configuration[=cfgkey]” instead of fragment. If cfgkey is present, it is also stored in the “fragment” named group. For example, “tango://a/b/c/d?configuration=label” passes this non-strict form, and the named group “fragment” will contain “label”
-
path
= '(?P<attrname>/?(?P<devname>((?P<_devalias>[^/?#:]+)|(?P<_devslashname>[^/?#:]+/[^/?#:]+/[^/?#:]+)))/(?P<_shortattrname>[^/?:#]+))'¶
-
query
= '(?!)'¶
-
scheme
= 'tango'¶