Home | Trees | Indices | Help |
|
---|
|
object --+ | AnnotationMaker
A class for producing column annotations.
An annotation simply is a dictionary with some well-known keys. They are generated from DB queries. It is this class' responsibility to collect the DB query result columns pertaining to a column and produce the annotation dictionary from them.
To make this happen, it is constructed with the column; then, for each property queried, addPropertyKey is called. Finally, addAnnotation is called with the DB result row (see annotateDBTable) to actually make and attach the dictionary.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
returns an OutputField that will generate a propName annotation from the propFunc function. propFunc for now has a %(name)s where the column name must be inserted. nameMaker is something like a base.VOTNameMaker. |
builds an annotation of the column form resultRow. resultRow is a dictionary containing values for all keys registred through addPropertyKey. If the column already has an annotation, only the new keys will be overwritten. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |