Package gavo :: Package registry :: Module servicelist
[frames] | no frames]

Module servicelist

source code

The (DC-internal) service list: querying, adding records, etc.

Functions
 
getSetsForResource(restup)
returns the list of set names the resource described by restup belongs to.
source code
 
getSets()
returns a sequence of dicts giving setName and and a list of services belonging to that set.
source code
 
queryServicesList(whereClause='', pars={}, tableName='resources_join')
returns a list of services based on selection criteria in whereClause.
source code
 
querySubjectsList(setName=None)
returns a list of local services chunked by subjects.
source code
 
getChunkedServiceList(setName=None)
returns a list of local services chunked by title char.
source code
 
cleanServiceTablesFor(rd, connection)
removes/invalidates all entries originating from rd from the service tables.
source code
 
basename(tableName) source code
 
getTableDef(tableName)
returns a tableDef instance for the schema-qualified tableName.
source code
Variables
  __package__ = 'gavo.registry'
Function Details

queryServicesList(whereClause='', pars={}, tableName='resources_join')

source code 

returns a list of services based on selection criteria in whereClause.

The table queried is the resources_join view, and you'll get back all fields defined there.

querySubjectsList(setName=None)

source code 

returns a list of local services chunked by subjects.

This is mainly for the root page (see web.root). Query the cache using the __system__/services key to clear the cache on services

getChunkedServiceList(setName=None)

source code 

returns a list of local services chunked by title char.

This is mainly for the root page (see web.root). Query the cache using the __system__/services key to clear the cache on services reload.

getTableDef(tableName)

source code 

returns a tableDef instance for the schema-qualified tableName.

If no such table is known to the system, a NotFoundError is raised.