EvaluationDeviceNameValidator

Inheritance diagram of EvaluationDeviceNameValidator
class EvaluationDeviceNameValidator(*p, **k)[source]

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

  • devname: device name (either _evalname or _evaldotname)

  • [_evalname]: evaluation instance name (aka non-dotted dev name)

  • [_evaldotname]: evaluation instance dotted name (if dotted name given)

  • [_old_devname]: devname without “@”. Only in non-strict mode

  • [_dbname] and [_subst]: unused. Only if non-strict mode

Note: brackets on the group name indicate that this group will only contain a string if the URI contains it.

Import from taurus.core.evaluation.evalvalidator as:

from taurus.core.evaluation.evalvalidator import EvaluationDeviceNameValidator
authority = '//localhost'
devname = '(?P<devname>@((?P<_evalname>[^/?#:\\.=]+)|(?P<_evaldotname>((?P<_evalinstname>\\w+)=)?(?P<_evalmodname>(\\w+\\.)*\\w+)\\.(?P<_evalclassname>(\\w+|\\*))(?P<_evalclassparenths>\\(("[^"]*"|\\\'[^\\\']*\\\'|[^\\\'"/])*?\\))?)))'
fragment = '(?!)'
getNames(fullname, factory=None)[source]

reimplemented from TaurusDeviceNameValidator

getUriGroups(name, strict=None)[source]

reimplemented from TaurusDeviceNameValidator to provide backwards compatibility with ol syntax

property nonStrictNamePattern

In non-strict mode support old-style eval names

path = '(?!//)/?(?P<devname>@((?P<_evalname>[^/?#:\\.=]+)|(?P<_evaldotname>((?P<_evalinstname>\\w+)=)?(?P<_evalmodname>(\\w+\\.)*\\w+)\\.(?P<_evalclassname>(\\w+|\\*))(?P<_evalclassparenths>\\(("[^"]*"|\\\'[^\\\']*\\\'|[^\\\'"/])*?\\))?)))'
query = '(?!)'
scheme = 'eval'