Package tdi :: Module interfaces :: Class AttributeAnalyzerInterface
[frames] | no frames]

Class AttributeAnalyzerInterface

source code

object --+
         |
        AttributeAnalyzerInterface

Interface for Attribute analyzers
Instance Methods
tuple
__call__(self, normalize, attr, name='')
Analyze attributes
source code

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

Instance Variables
str attribute
The attribute name
str scope
The scope attribute name
Properties

Inherited from object: __class__

Method Details

__call__(self, normalize, attr, name='')
(Call operator)

source code 
Analyze attributes
Parameters:
  • normalize (callable) - Element and attribute name normalizer
  • attr (sequence) - (key, value) list of attributes. value may be None
  • name (str) - Name to treat as attribute. Only applied if set and not empty.
Returns: tuple

The (possibly) reduced attributes and a dict of special attributes. All of the special attributes are optional:

attribute
(flags, name)
overlay
(flags, name) or None
scope
(flags, name) or None

Instance Variable Details

attribute

The attribute name
Type:
str

scope

The scope attribute name
Type:
str