Package gavo :: Package rscdef :: Module dddef :: Class SourceSpec
[frames] | no frames]

Class SourceSpec

source code

                   object --+            
                            |            
 base.structure.StructureBase --+        
                                |        
                   object --+   |        
                            |   |        
           base.common.Parser --+        
                                |        
base.structure.ParseableStructure --+    
                                    |    
             base.structure.Structure --+
                                        |
                                       SourceSpec

A Specification of a data descriptor's inputs.

This will typcially be files taken from a file system. If so, DaCHS will, in each directory, process the files in alphabetical order. No guarantees are made as to the sequence directories are processed in.

Multiple patterns are processed in the order given in the RD.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
__iter__(self) source code
 
completeElement(self, ctx) source code
 
iterSources(self, connection=None) source code
 
__nonzero__(self) source code

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

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

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

Inherited from base.common.Parser: feedEvent

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

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  name_ = 'sources'
a sentinel for all kinds of undefined values.
  attrSeq = [<gavo.base.structure.DataContent object>, <gavo.bas...
  managedAttrs = {'content_': <gavo.base.structure.DataContent o...

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

completeElement(self, ctx)

source code 
Overrides: base.structure.Structure.completeElement

Class Variable Details

attrSeq

Value:
[<gavo.base.structure.DataContent object>,
 <gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.complexattrs.StructAttribute object>,
 <gavo.base.complexattrs.ListOfAtomsAttribute object>,
 <gavo.base.parsecontext.OriginalAttribute object>,
 <gavo.base.complexattrs.ListOfAtomsAttribute object>,
 <gavo.base.attrdef.BooleanAttribute object>]

managedAttrs

Value:
{'content_': <gavo.base.structure.DataContent object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'ignoreSources': <gavo.base.complexattrs.StructAttribute object>,
 'ignoredSources': <gavo.base.complexattrs.StructAttribute object>,
 'item': <gavo.base.complexattrs.ListOfAtomsAttribute object>,
 'items': <gavo.base.complexattrs.ListOfAtomsAttribute object>,
 'original': <gavo.base.parsecontext.OriginalAttribute object>,
 'pattern': <gavo.base.complexattrs.ListOfAtomsAttribute object>,
...