Package gavo :: Package registry :: Module capabilities :: Class CapabilityMaker
[frames] | no frames]

Class CapabilityMaker

source code

object --+
         |
        CapabilityMaker
Known Subclasses:

An encapsulation of capability construction.

Each capability (currently) corresponds to a renderer.

You will want to override (some of) the class variables at the top, plus the _makeCapability method (that you'll probably still want to upcall for the basic functionality).

In particular, you will typically want to override capabilityClass with a stanxml element spitting out the right standardIds.

Additionally, if the capability should also appear in data collections served by a service with the capability, also define auxiliaryId (that's an IVOID like ivo://ivoa.net/std/TAP#aux). These are used in getCapabilityElement.

CapabilityMakers are used by calling them.

Nested Classes
  capabilityClass
Instance Methods
 
__call__(self, publication) source code

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

Class Variables
  renderer = None
hash(x)
  auxiliaryId = None
hash(x)
Properties

Inherited from object: __class__