Package gavo :: Package svcs :: Module outputdef :: Class OutputTableDef
[frames] | no frames]

Class OutputTableDef

source code

                   object --+                
                            |                
 base.structure.StructureBase --+            
                                |            
                   object --+   |            
                            |   |            
           base.common.Parser --+            
                                |            
base.structure.ParseableStructure --+        
                                    |        
             base.structure.Structure --+    
                                        |    
                       object --+       |    
                                |       |    
              base.meta.MetaMixin --+   |    
                                    |   |    
          base.meta.ComputedMetaMixin --+    
                                        |    
                           object --+   |    
                                    |   |    
        rscdef.common.PrivilegesMixin --+    
                                        |    
                           object --+   |    
                                    |   |    
           rscdef.common.IVOMetaMixin --+    
                                        |    
                       object --+       |    
                                |       |    
         base.macros.MacroPackage --+   |    
                                    |   |    
       base.macros.StandardMacroMixin --+    
                                        |    
                           object --+   |    
                                    |   |    
 rscdef.tabledef.PublishableDataMixin --+    
                                        |    
                 rscdef.tabledef.TableDef --+
                                            |
                                           OutputTableDef

A table that has outputFields for columns.

Cores always have one of these, but they are implicitly defined by the underlying database tables in case of dbCores and such.

Services may define output tables to modify what is coming back fromt the core. Note that this usually only affects the output to web browsers. To use the output table also through VO protocols (and when producing VOTables, FITS files, and the like), you need to set the service's votableRespectsOutputTable property to True.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
__init__(self, parent, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
completeElement(self, ctx) source code
 
clearProperty(self, name) source code
 
getFullId(self) source code
 
getPrimaryIn(self, row) source code
 
getProperty(self, name, default=<Undefined>) source code
 
hasProperty(self, name) source code
 
iterAnnotationsOfType(instance, typeName)
returns the first annotation of the type passed.
source code
 
mixesIn(instance, mixinRef) source code
 
resolveName(instance, context, id) source code
 
setProperty(self, name, value) source code
 
updateAnnotationFromChildren(instance) source code

Inherited from rscdef.tabledef.TableDef: __contains__, __iter__, __repr__, doSimpleQuery, getByName, getByUtype, getByUtypes, getColumnById, getColumnByName, getColumnByUCD, getColumnByUCDs, getColumnsByUCD, getColumnsByUCDs, getDDL, getDefaults, getElementForName, getFieldIndex, getNote, getParamByName, getQName, getSTCDefs, getSimpleQuery, getURL, macro_colNames, macro_curtable, macro_getParam, macro_nameForUCD, macro_nameForUCDs, macro_qName, macro_tablename, makeRowFromTuple, onElementComplete, validate, validateRow

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, finishElement

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, getSourcePosition, iterChildren, setPosition

Inherited from base.common.Parser: feedEvent

Inherited from base.meta.ComputedMetaMixin: getMetaKeys

Inherited from base.meta.MetaMixin: addMeta, buildRepr, copyMetaFrom, delMeta, getAllMetaPairs, getMeta, getMetaParent, isEmpty, iterMeta, keys, makeOriginal, setMeta, setMetaParent, traverse

Inherited from base.macros.StandardMacroMixin: macro_RSTservicelink, macro_RSTtable, macro_decapitalize, macro_getConfig, macro_internallink, macro_magicEmpty, macro_metaSeq, 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, macro_reSub, macro_sql_standardPubDID, macro_sqlquote

Inherited from rscdef.tabledef.PublishableDataMixin: getPublicationsForSet

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
fromColumns(cls, columns, **kwargs)
returns a TableDef from a sequence of columns.
source code
 
fromTableDef(cls, tableDef, ctx=None) source code

Inherited from base.structure.StructureBase: fromStructure

Static Methods

Inherited from rscdef.tabledef.TableDef: disambiguateColumns

Class Variables
  name_ = 'outputTable'
hash(x)
  metaModel = None
hash(x)
  attrSeq = [<gavo.rscdef.tabledef.ADQLVisibilityAttribute objec...
  managedAttrs = {'adql': <gavo.rscdef.tabledef.ADQLVisibilityAt...

Inherited from rscdef.tabledef.TableDef: fixupFunction, resType

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties
  rd

Inherited from rscdef.tabledef.TableDef: caseFixer

Inherited from object: __class__

Method Details

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

source code 

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

Overrides: object.__init__
(inherited documentation)

completeElement(self, ctx)

source code 
Overrides: base.structure.Structure.completeElement

fromColumns(cls, columns, **kwargs)
Class Method

source code 

returns a TableDef from a sequence of columns.

You can give additional constructor arguments. makeStruct is used to build the instance, the mixin hack is applied.

Columns with identical names will be disambiguated.

Overrides: rscdef.tabledef.TableDef.fromColumns
(inherited documentation)

clearProperty(self, name)

source code 
Overrides: rscdef.tabledef.TableDef.clearProperty

getFullId(self)

source code 
Overrides: rscdef.tabledef.TableDef.getFullId

getPrimaryIn(self, row)

source code 
Overrides: rscdef.tabledef.TableDef.getPrimaryIn

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

source code 
Overrides: rscdef.tabledef.TableDef.getProperty

hasProperty(self, name)

source code 
Overrides: rscdef.tabledef.TableDef.hasProperty

iterAnnotationsOfType(instance, typeName)

source code 

returns the first annotation of the type passed.

Overrides: rscdef.tabledef.TableDef.iterAnnotationsOfType

mixesIn(instance, mixinRef)

source code 
Overrides: rscdef.tabledef.TableDef.mixesIn

resolveName(instance, context, id)

source code 
Overrides: rscdef.tabledef.TableDef.resolveName

setProperty(self, name, value)

source code 
Overrides: rscdef.tabledef.TableDef.setProperty

updateAnnotationFromChildren(instance)

source code 
Overrides: rscdef.tabledef.TableDef.updateAnnotationFromChildren

Class Variable Details

attrSeq

Value:
[<gavo.rscdef.tabledef.ADQLVisibilityAttribute object>,
 <gavo.rscdef.common.ProfileListAttribute object>,
 <gavo.dm.dmrd.DataModelRolesAttribute object>,
 <gavo.base.attrdef.StringListAttribute object>,
 <gavo.rscdef.common.ColumnListAttribute object>,
 <gavo.base.attrdef.EnumeratedUnicodeAttribute object>,
 <gavo.base.attrdef.BooleanAttribute object>,
 <gavo.base.complexattrs.StructListAttribute object>,
...

managedAttrs

Value:
{'adql': <gavo.rscdef.tabledef.ADQLVisibilityAttribute object>,
 'allProfiles': <gavo.rscdef.common.ProfileListAttribute object>,
 'autoCols': <gavo.base.attrdef.StringListAttribute object>,
 'column': <gavo.rscdef.common.ColumnListAttribute object>,
 'columns': <gavo.rscdef.common.ColumnListAttribute object>,
 'dm': <gavo.dm.dmrd.DataModelRolesAttribute object>,
 'dupePolicy': <gavo.base.attrdef.EnumeratedUnicodeAttribute object>,
 'forceUnique': <gavo.base.attrdef.BooleanAttribute object>,
...

Property Details

rd

Get Method:
unreachable._getRD(self)