Package gavo :: Package protocols :: Module products :: Class ProductsGrammar
[frames] | no frames]

Class ProductsGrammar

source code

                   object --+                
                            |                
 base.structure.StructureBase --+            
                                |            
                   object --+   |            
                            |   |            
           base.common.Parser --+            
                                |            
base.structure.ParseableStructure --+        
                                    |        
             base.structure.Structure --+    
                                        |    
                   object --+           |    
                            |           |    
     base.macros.MacroPackage --+       |    
                                |       |    
   base.macros.StandardMacroMixin --+   |    
                                    |   |    
    grammars.common.GrammarMacroMixin --+    
                                        |    
                  grammars.common.Grammar --+
                                            |
                                           ProductsGrammar

A grammar for "parsing" annotated RAccref to Product objects.

Product objects are instances of classes derived from ProductBase.

Nested Classes
  rowIterator
A RowIterator turning RAccrefs to instances of subclasses of ProductBase.

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
clearProperty(self, name) source code
 
getFullId(self) source code
 
getProperty(self, name, default=<Undefined>) source code
 
hasProperty(self, name) source code
 
setProperty(self, name, value) source code

Inherited from grammars.common.Grammar: getSourceFields, parse

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

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

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

Inherited from base.common.Parser: feedEvent

Inherited from grammars.common.GrammarMacroMixin: macro_colNames, macro_dlMetaURI, macro_fullDLURL, macro_inputRelativePath, macro_inputSize, macro_lastSourceElements, macro_property, macro_rootlessPath, macro_rowsProcessed, macro_sourceDate, macro_splitPreviewPath, macro_srcstem, macro_standardPreviewPath

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

Inherited from base.macros.MacroPackage: execMacro, expand, getExpander, listMacros, macro_quote

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
  attrSeq = [<gavo.base.attrdef.UnicodeAttribute object at 0xf43...
  managedAttrs = {'enc': <gavo.base.attrdef.UnicodeAttribute obj...

Inherited from grammars.common.Grammar: isDispatching, name_

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties
  rd

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

clearProperty(self, name)

source code 
Overrides: grammars.common.Grammar.clearProperty

getFullId(self)

source code 
Overrides: grammars.common.Grammar.getFullId

getProperty(self, name, default=<Undefined>)

source code 
Overrides: grammars.common.Grammar.getProperty

hasProperty(self, name)

source code 
Overrides: grammars.common.Grammar.hasProperty

setProperty(self, name, value)

source code 
Overrides: grammars.common.Grammar.setProperty

Class Variable Details

attrSeq

Value:
[<gavo.base.attrdef.UnicodeAttribute object at 0xf43c350c>,
 <gavo.base.attrdef.StringSetAttribute object at 0xf3bcb6ec>,
 <gavo.base.parsecontext.IdAttribute object at 0xf5104c4c>,
 <gavo.base.complexattrs.StructAttribute object at 0xf43d9f2c>,
 <gavo.base.parsecontext.OriginalAttribute object at 0xf43d9f8c>,
 <gavo.base.complexattrs.PropertyAttribute object at 0xf43d9f6c>,
 <gavo.rscdef.common.RDAttribute object at 0xf43d9fac>,
 <gavo.base.complexattrs.StructListAttribute object at 0xf43d9eec>,
...

managedAttrs

Value:
{'enc': <gavo.base.attrdef.UnicodeAttribute object at 0xf43c350c>,
 'groups': <gavo.base.attrdef.StringSetAttribute object at 0xf3bcb6ec>\
,
 'id': <gavo.base.parsecontext.IdAttribute object at 0xf5104c4c>,
 'ignoreOn': <gavo.base.complexattrs.StructAttribute object at 0xf43d9\
f2c>,
 'original': <gavo.base.parsecontext.OriginalAttribute object at 0xf43\
d9f8c>,
...

Property Details

rd

Get Method:
unreachable._getRD(self)