Package gavo :: Package base :: Module activetags :: Class RecordingBase
[frames] | no frames]

Class RecordingBase

source code

              object --+            
                       |            
 structure.StructureBase --+        
                           |        
              object --+   |        
                       |   |        
           common.Parser --+        
                           |        
structure.ParseableStructure --+    
                               |    
             structure.Structure --+
                                   |
                                  RecordingBase
Known Subclasses:

An "abstract base" for active tags doing event recording.

The recorded events are available in the events attribute.

Nested Classes

Inherited from structure.StructureBase: __metaclass__

Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
feedEvent(self, ctx, type, name, value) source code
 
start_(self, ctx, name, value) source code
 
end_(self, ctx, name, value) source code
 
value_(self, ctx, name, value) source code
 
getEventSource(self)
returns an object suitable as event source in xmlstruct.
source code
 
unexpandMacros(self)
undoes the marking of expanded values as expanded.
source code
 
iterEvents(self)
returns an object suitable as event source in xmlstruct.
source code

Inherited from structure.Structure: __provides__, callCompletedCallbacks, completeElement, finishElement, onElementComplete, validate

Inherited from structure.ParseableStructure: feed, feedFrom, feedObject, getAttribute

Inherited from structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

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

Class Methods

Inherited from structure.StructureBase: fromStructure

Class Variables
  name_ = None
hash(x)
  attrSeq = [<gavo.base.complexattrs.StructAttribute object>, <g...
  managedAttrs = {'DEFAULTS': <gavo.base.complexattrs.StructAttr...

Inherited from structure.Structure: __implemented__

Inherited from structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

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

source code 

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

Overrides: object.__init__
(inherited documentation)

feedEvent(self, ctx, type, name, value)

source code 
Overrides: common.Parser.feedEvent

start_(self, ctx, name, value)

source code 
Overrides: structure.ParseableStructure.start_

end_(self, ctx, name, value)

source code 
Overrides: structure.ParseableStructure.end_

value_(self, ctx, name, value)

source code 
Overrides: structure.ParseableStructure.value_

unexpandMacros(self)

source code 

undoes the marking of expanded values as expanded.

This is when, as with mixins, duplicate expansion of macros during replay is desired.

iterEvents(self)

source code 

returns an object suitable as event source in xmlstruct.

Overrides: structure.ParseableStructure.iterEvents

Class Variable Details

attrSeq

Value:
[<gavo.base.complexattrs.StructAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.base.parsecontext.IdAttribute object>]

managedAttrs

Value:
{'DEFAULTS': <gavo.base.complexattrs.StructAttribute object>,
 'doc': <gavo.base.attrdef.UnicodeAttribute object>,
 'id': <gavo.base.parsecontext.IdAttribute object>}