gavo.grammars.rowsetgrammar module

A grammar that takes standard tuples as input and turns them into rows of a table.

class gavo.grammars.rowsetgrammar.RowsetGrammar(parent, **kwargs)[source]

Bases: Grammar

A grammar handling sequences of tuples.

To add semantics to the field, it must know the “schema” of the data. This is defined via the table it is supposed to get the input from.

This grammar probably is only useful for internal purposes.

attrSeq = [<gavo.base.attrdef.UnicodeAttribute object>, <gavo.base.parsecontext.ReferenceAttribute object>, <gavo.base.parsecontext.IdAttribute object>, <gavo.base.complexattrs.StructAttribute object>, <gavo.base.parsecontext.OriginalAttribute object>, <gavo.base.complexattrs.PropertyAttribute object>, <gavo.rscdef.common.RDAttribute object>, <gavo.base.complexattrs.StructListAttribute object>, <gavo.base.complexattrs.StructAttribute object>]
clearProperty(name)
completedCallbacks = []
getFullId()
getProperty(name, default=<Undefined>)
hasProperty(name)
managedAttrs = {'enc': <gavo.base.attrdef.UnicodeAttribute object>, 'fieldsFrom': <gavo.base.parsecontext.ReferenceAttribute object>, 'id': <gavo.base.parsecontext.IdAttribute object>, 'ignoreOn': <gavo.base.complexattrs.StructAttribute object>, 'original': <gavo.base.parsecontext.OriginalAttribute object>, 'properties': <gavo.base.complexattrs.PropertyAttribute object>, 'property': <gavo.base.complexattrs.PropertyAttribute object>, 'rd': <gavo.rscdef.common.RDAttribute object>, 'rowfilter': <gavo.base.complexattrs.StructListAttribute object>, 'rowfilters': <gavo.base.complexattrs.StructListAttribute object>, 'sourceFields': <gavo.base.complexattrs.StructAttribute object>}
name_ = 'rowsetGrammar'
onElementComplete()[source]
property rd
rowIterator

alias of RowsetIterator

setProperty(name, value)
class gavo.grammars.rowsetgrammar.RowsetIterator(grammar, sourceToken, sourceRow=None)[source]

Bases: RowIterator

is a row iterator over a sequence of tuples.