Package gavo :: Package svcs :: Module standardcores
[frames] | no frames]

Module standardcores

source code

Some standard cores for services.

A core receives and "input table" (usually just containing the query parameters in the doc rec) and returns an output data set (which is promoted to a SvcResult in the service before being handed over to the renderer).

These then have to be picked up by renderers and formatted for delivery.

Classes
  Error
  PhraseMaker
A procedure application for generating SQL expressions from input keys.
  CondDesc
A query specification for cores talking to the database.
  TableBasedCore
A core knowing a DB table it operates on and allowing the definition of condDescs.
  FancyQueryCore
A core executing a pre-specified query with fancy conditions.
  DBCore
A core performing database queries on one table or view.
  FixedQueryCore
A core executing a predefined query.
  NullCore
A core always returning None.
Functions
 
mapDBErrors(excType, excValue, excTb)
translates exception into something we can display properly.
source code
Variables
  __package__ = 'gavo.svcs'