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

Class Edit

source code

              object --+                    
                       |                    
 structure.StructureBase --+                
                           |                
              object --+   |                
                       |   |                
           common.Parser --+                
                           |                
structure.ParseableStructure --+            
                               |            
             structure.Structure --+        
                                   |        
                       RecordingBase --+    
                                       |    
                  object --+           |    
                           |           |    
     structure.StructureBase --+       |    
                               |       |    
                  object --+   |       |    
                           |   |       |    
               common.Parser --+       |    
                               |       |    
    structure.ParseableStructure --+   |    
                                   |   |    
                 structure.Structure --+    
                                       |    
                          EmbeddedStream --+
                                           |
                                          Edit

an event stream targeted at editing other structures.

When replaying a stream in the presence of EDITs, the elements are are continually checked against ref. If an element matches, the children of edit will be played back into it.

Nested Classes

Inherited from structure.StructureBase: __metaclass__

Instance Methods
 
onElementComplete(self) source code

Inherited from EmbeddedStream: end_

Inherited from RecordingBase: __init__, feedEvent, getEventSource, iterEvents, start_, unexpandMacros, value_

Inherited from structure.Structure: __provides__, callCompletedCallbacks, completeElement, finishElement, 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_ = 'EDIT'
hash(x)
  refPat = re.compile(r'([A-Za-z_][A-Za-z0-9_]*)\[([A-Za-z_][A-Z...
  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

onElementComplete(self)

source code 
Overrides: structure.Structure.onElementComplete

Class Variable Details

refPat

Value:
re.compile(r'([A-Za-z_][A-Za-z0-9_]*)\[([A-Za-z_][A-Za-z0-9_]*)\]')

attrSeq

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

managedAttrs

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