Package gavo :: Package rscdef :: Module rowtriggers :: Class IgnoreOn
[frames] | no frames]

Class IgnoreOn

source code

                   object --+                    
                            |                    
 base.structure.StructureBase --+                
                                |                
                   object --+   |                
                            |   |                
           base.common.Parser --+                
                                |                
base.structure.ParseableStructure --+            
                                    |            
             base.structure.Structure --+        
                                        |        
                              TriggerBase --+    
                                            |    
                                ConditionBase --+
                                                |
                                               IgnoreOn

A condition on a row that, if true, causes the row to be dropped.

Here, you can set bail to abort an import when the condition is met rather than just dropping the row.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
__call__(self, row) source code

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, completeElement, 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_ = 'ignoreOn'
a sentinel for all kinds of undefined values.
  attrSeq = [<gavo.base.attrdef.BooleanAttribute object>, <gavo....
  managedAttrs = {'and': <gavo.base.complexattrs.MultiStructList...

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

__call__(self, row)
(Call operator)

source code 
Overrides: ConditionBase.__call__

Class Variable Details

attrSeq

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

managedAttrs

Value:
{'and': <gavo.base.complexattrs.MultiStructListAttribute object>,
 'bail': <gavo.base.attrdef.BooleanAttribute object>,
 'id': <gavo.base.parsecontext.IdAttribute object>,
 'keyIs': <gavo.base.complexattrs.MultiStructListAttribute object>,
 'keyMissing': <gavo.base.complexattrs.MultiStructListAttribute object\
>,
 'keyNull': <gavo.base.complexattrs.MultiStructListAttribute object>,
 'keyPresent': <gavo.base.complexattrs.MultiStructListAttribute object\
...