Package gavo :: Package base :: Module attrdef :: Class ActionAttribute
[frames] | no frames]

Class ActionAttribute

source code

  object --+            
           |            
AttributeDef --+        
               |        
 AtomicAttribute --+    
                   |    
    UnicodeAttribute --+
                       |
                      ActionAttribute

An attribute definition for attributes triggering a method call on the parent instance.

They do create an attribute on parent which is None by default and the attribute value as a unicode string once the attribute was encountered. This could be used to handle multiple occurrences but is not in this basic definition.

Instance Methods
 
__init__(self, name, methodName, description='Undocumented', **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
feed(self, ctx, instance, value) source code

Inherited from UnicodeAttribute: parse, unparse

Inherited from AtomicAttribute: feedObject, getCopy, makeUserDoc

Inherited from AttributeDef: doCallbacks, iterParentMethods

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

Class Variables

Inherited from UnicodeAttribute: typeDesc_

Properties

Inherited from object: __class__

Method Details

__init__(self, name, methodName, description='Undocumented', **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

feed(self, ctx, instance, value)

source code 
Overrides: AttributeDef.feed