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

Class IgnoreSpec

source code

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

A specification of sources to ignore.

Sources mentioned here are compared against the inputsDir-relative path of sources generated by sources (cf. `Element sources`_). If there is a match, the corresponding source will not be processed.

You can get ignored files from various sources. If you give more than one source, the set of ignored files is the union of the the individual sets.

fromdbUpdating is a bit special in that the query must return UTC timestamps of the file's mtime during the last ingest in addition to the accrefs (see the tutorial for an example).

Macros are expanded in the RD.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
completeElement(self, ctx) source code
 
prepare(self, connection)
sets attributes to speed up isIgnored()
source code
 
isIgnored(self, path)
returns true if path, made inputsdir-relative, should be ignored.
source code
 
getFullId(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_ = 'ignoreSources'
a sentinel for all kinds of undefined values.
  attrSeq = [<gavo.base.attrdef.UnicodeAttribute object>, <gavo....
  managedAttrs = {'fromdb': <gavo.base.attrdef.UnicodeAttribute ...

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties
  fromfile
  rd

Inherited from object: __class__

Method Details

completeElement(self, ctx)

source code 
Overrides: base.structure.Structure.completeElement

Class Variable Details

attrSeq

Value:
[<gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.base.attrdef.UnicodeAttribute object>,
 <gavo.rscdef.common.ResdirRelativeAttribute object>,
 <gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.complexattrs.ListOfAtomsAttribute object>,
 <gavo.rscdef.common.RDAttribute object>]

managedAttrs

Value:
{'fromdb': <gavo.base.attrdef.UnicodeAttribute object>,
 'fromdbUpdating': <gavo.base.attrdef.UnicodeAttribute object>,
 'fromfile': <gavo.rscdef.common.ResdirRelativeAttribute object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'pattern': <gavo.base.complexattrs.ListOfAtomsAttribute object>,
 'patterns': <gavo.base.complexattrs.ListOfAtomsAttribute object>,
 'rd': <gavo.rscdef.common.RDAttribute object>}

Property Details

fromfile

Get Method:
unreachable.computePath(instance)
Set Method:
unreachable.setRelative(instance, value)

rd

Get Method:
unreachable._getRD(self)