gavo.registry.servicelist module

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

gavo.registry.servicelist.basename(tableName)[source]
gavo.registry.servicelist.cleanServiceTablesFor(rd, connection)[source]

removes/invalidates all entries originating from rd from the service tables.

gavo.registry.servicelist.getChunkedServiceList(setName=None)[source]

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.

gavo.registry.servicelist.getSets()[source]

returns a sequence of dicts giving setName and and a list of services belonging to that set.

gavo.registry.servicelist.getSetsForResource(restup)[source]

returns the list of set names the resource described by restup belongs to.

gavo.registry.servicelist.getTableDef(tableName)[source]

returns a tableDef instance for the schema-qualified tableName.

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

gavo.registry.servicelist.queryServicesList(whereClause='', pars={}, tableName='resources_join')[source]

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.

gavo.registry.servicelist.querySubjectsList(setName=None)[source]

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.

Note that this will translate known UAT terms to their labels.