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

Class ReplayBase

source code

                      object --+    
                               |    
                       ActiveTag --+
                                   |
              object --+           |
                       |           |
 structure.StructureBase --+       |
                           |       |
              object --+   |       |
                       |   |       |
           common.Parser --+       |
                           |       |
structure.ParseableStructure --+   |
                               |   |
             structure.Structure --+
                                   |
                  object --+       |
                           |       |
         macros.MacroPackage --+   |
                               |   |
       macros.StandardMacroMixin --+
                                   |
                                  ReplayBase
Known Subclasses:

An "abstract base" for active tags replaying streams.

Nested Classes

Inherited from structure.StructureBase: __metaclass__

Instance Methods
 
replay(self, events, destination, ctx)
pushes the stored events into the destination structure.
source code

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

Inherited from structure.ParseableStructure: __init__, end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

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

Inherited from common.Parser: feedEvent

Inherited from macros.StandardMacroMixin: macro_RSTservicelink, macro_RSTtable, macro_decapitalize, macro_getConfig, macro_internallink, macro_magicEmpty, macro_metaSeq, macro_metaString, macro_rdId, macro_rdIdDotted, macro_schema, macro_test, macro_today, macro_upper, macro_urlquote

Inherited from macros.MacroPackage: execMacro, expand, getExpander, listMacros, macro_quote, macro_reSub, macro_sql_standardPubDID, macro_sqlquote

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.StructListAttribute object>...
  managedAttrs = {'EDIT': <gavo.base.complexattrs.StructListAttr...

Inherited from structure.Structure: __implemented__

Inherited from structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

replay(self, events, destination, ctx)

source code 

pushes the stored events into the destination structure.

While doing this, local macros are expanded unless we already receive the events from an active tag (e.g., nested streams and such).


Class Variable Details

attrSeq

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

managedAttrs

Value:
{'EDIT': <gavo.base.complexattrs.StructListAttribute object>,
 'PRUNE': <gavo.base.complexattrs.StructListAttribute object>,
 'edits': <gavo.base.complexattrs.StructListAttribute object>,
 'events': <gavo.base.complexattrs.StructAttribute object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'prunes': <gavo.base.complexattrs.StructListAttribute object>,
 'reexpand': <gavo.base.attrdef.BooleanAttribute object>,
 'source': <gavo.base.parsecontext.ReferenceAttribute object>}