gavo.svcs package¶
Submodules¶
- gavo.svcs.common module
- gavo.svcs.core module
Core
Core.adaptForRenderer()
Core.attrSeq
Core.clearProperty()
Core.completeElement()
Core.completedCallbacks
Core.getFullId()
Core.getProperty()
Core.getRelevantTables()
Core.hasProperty()
Core.initialize()
Core.inputTableXML
Core.makeUserDoc()
Core.managedAttrs
Core.name_
Core.outputTableXML
Core.rd
Core.run()
Core.setProperty()
DebugCore
getCore()
- gavo.svcs.customcore module
CoreProc
CustomCore
CustomCore.attrSeq
CustomCore.clearProperty()
CustomCore.completeElement()
CustomCore.completedCallbacks
CustomCore.getFullId()
CustomCore.getProperty()
CustomCore.hasProperty()
CustomCore.managedAttrs
CustomCore.module
CustomCore.name_
CustomCore.onElementComplete()
CustomCore.rd
CustomCore.setProperty()
PythonCore
- gavo.svcs.customwidgets module
- gavo.svcs.dalipars module
- gavo.svcs.inputdef module
ContextGrammar
ContextGrammar.attrSeq
ContextGrammar.clearProperty()
ContextGrammar.completedCallbacks
ContextGrammar.getFullId()
ContextGrammar.getProperty()
ContextGrammar.hasProperty()
ContextGrammar.iterInputKeys()
ContextGrammar.managedAttrs
ContextGrammar.name_
ContextGrammar.onElementComplete()
ContextGrammar.parseStrargs()
ContextGrammar.rd
ContextGrammar.rejectExtras
ContextGrammar.rowIterator
ContextGrammar.setProperty()
ContextRowIterator
CoreArgs
InputKey
InputKey.attrSeq
InputKey.clearProperty()
InputKey.completeElement()
InputKey.completedCallbacks
InputKey.computeCoreArgValue()
InputKey.fromColumn()
InputKey.getProperty()
InputKey.hasProperty()
InputKey.managedAttrs
InputKey.metaModel
InputKey.name_
InputKey.onElementComplete()
InputKey.onParentComplete()
InputKey.setProperty()
InputKey.validateValue()
InputTD
filterInputKeys()
getRendererAdaptor()
- gavo.svcs.outputdef module
OutputField
OutputTableDef
OutputTableDef.attrSeq
OutputTableDef.clearProperty()
OutputTableDef.completeElement()
OutputTableDef.completedCallbacks
OutputTableDef.fromColumns()
OutputTableDef.fromTableDef()
OutputTableDef.getFullId()
OutputTableDef.getPrimaryIn()
OutputTableDef.getProperty()
OutputTableDef.hasProperty()
OutputTableDef.iterAnnotationsOfType()
OutputTableDef.managedAttrs
OutputTableDef.metaModel
OutputTableDef.mixesIn()
OutputTableDef.name_
OutputTableDef.rd
OutputTableDef.resolveName()
OutputTableDef.setProperty()
OutputTableDef.updateAnnotationFromChildren()
- gavo.svcs.pql module
- gavo.svcs.renderers module
- gavo.svcs.service module
CoreAttribute
CustomDF
CustomPageFunction
CustomRF
PreparsedInput
Publication
Service
Service.adaptCoreRes()
Service.attrSeq
Service.clearProperty()
Service.completeElement()
Service.completedCallbacks
Service.customPage
Service.declareServes()
Service.getAllOutputFields()
Service.getBrowserURL()
Service.getContextGrammarFor()
Service.getCoreFor()
Service.getCurOutputFields()
Service.getFullId()
Service.getHTMLOutputFields()
Service.getInputKeysFor()
Service.getProperty()
Service.getPublicationsForSet()
Service.getTableSet()
Service.getTemplate()
Service.getURL()
Service.getUWS()
Service.hasProperty()
Service.htmlLikeFormats
Service.isBrowseableWith()
Service.isVOPublished
Service.macro_tablesForTAP()
Service.managedAttrs
Service.metaModel
Service.name_
Service.onElementComplete()
Service.rd
Service.run()
Service.setProperty()
getDALIServiceKeys()
- gavo.svcs.standardcores module
CondDesc
DBCore
Error
FancyQueryCore
FancyQueryCore.attrSeq
FancyQueryCore.clearProperty()
FancyQueryCore.completedCallbacks
FancyQueryCore.getFullId()
FancyQueryCore.getProperty()
FancyQueryCore.hasProperty()
FancyQueryCore.managedAttrs
FancyQueryCore.name_
FancyQueryCore.rd
FancyQueryCore.resolveName()
FancyQueryCore.run()
FancyQueryCore.setProperty()
FixedQueryCore
FixedQueryCore.attrSeq
FixedQueryCore.clearProperty()
FixedQueryCore.completeElement()
FixedQueryCore.completedCallbacks
FixedQueryCore.getFullId()
FixedQueryCore.getProperty()
FixedQueryCore.hasProperty()
FixedQueryCore.managedAttrs
FixedQueryCore.name_
FixedQueryCore.rd
FixedQueryCore.run()
FixedQueryCore.setProperty()
NullCore
PhraseMaker
TableBasedCore
TableBasedCore.adaptForRenderer()
TableBasedCore.attrSeq
TableBasedCore.clearProperty()
TableBasedCore.completeElement()
TableBasedCore.completedCallbacks
TableBasedCore.getFullId()
TableBasedCore.getProperty()
TableBasedCore.getRelevantTables()
TableBasedCore.hasProperty()
TableBasedCore.managedAttrs
TableBasedCore.rd
TableBasedCore.resolveName()
TableBasedCore.setProperty()
mapDBErrors()
- gavo.svcs.streaming module
- gavo.svcs.uploadcores module
- gavo.svcs.vanity module
- gavo.svcs.vizierexprs module
DateFlattener
DateNode
MJDNode
NumericFlattener
NumericIntervalFlattener
NumericNode
ParseNode
StringFlattener
StringNode
ToVexprConverter
adaptInputKey()
format_placeholder()
getComplexGrammar()
getPlaceholderFor()
getStringGrammar()
makeConeSearchFor()
makeDatePmNode()
makeMJDPmNode()
makePmNode()
parseDateExpr()
parseDateExprToMJD()
parseDateTime()
parseFloat()
parseNumericExpr()
parseStringExpr()
Module contents¶
Services, cores, and support.
A Service is something that receives a twisted web request (or perhaps something a bit more digested from formal), processes it into input data using a ContextGrammar pipes the resulting CoreArgs instance through a core to receive a data set and optionally tinkers with that data set.
A core receives a CoreArgs thing, processes it, and returns something. That something typically is a table (an instance of something derived from rsc.BaseTable), and if it is, then service will adapt it to its outputTable (if necessary), wrap it into an rsc.Data instance and return it.
Other core results will be handed through as-is, ignoring the service’s outputTable. There are two things many renderers understand: For one, complete rsc.Data instances, which you’ll want if your core produces multi-table results. And secondly, a pair of (media type, bytes), which instructs several renderers to write bytes to the client with with content-type set to media type.
Support code is in common. Most importantly, this is QueryMeta, a data structure carrying lots of information on the query being processed.