Package mrv :: Package automation :: Module attributes :: Class RegexStringAttr
[hide private]
[frames] | no frames]

Class RegexStringAttr

source code

   object --+    
            |    
dge.Attribute --+
                |
               RegexStringAttr

Attribute that accepts string values matching a given regular expression
Instance Methods [hide private]
 
__init__(self, regexstring, *args, **kwargs)
Initialize the attribute with a glob filter :param regexstring: i.e.
source code

Inherited from dge.Attribute (private): _getClassRating

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Interface
 
compatabilityRate(self, value)
Returns: rate of base class provided that the regex matches, 0 otherwise
source code

Inherited from dge.Attribute: affinity, connectionAffinity, default

Class Variables [hide private]

Inherited from dge.Attribute: check_passing_values, cls, computable, exact_type, kGood, kNo, kPerfect, readonly, uncached, unconnectable

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, regexstring, *args, **kwargs)
(Constructor)

source code 
Initialize the attribute with a glob filter :param regexstring: i.e. .*..* or .*.py or ^base_.*.pyo
Overrides: object.__init__

compatabilityRate(self, value)

source code 
Compute value's compatability rate
Returns:
rate of base class provided that the regex matches, 0 otherwise
Overrides: dge.Attribute.compatabilityRate