Package gavo :: Package rscdef :: Module tabledef :: Class PublishableDataMixin
[frames] | no frames]

Class PublishableDataMixin

source code

object --+
         |
        PublishableDataMixin
Known Subclasses:

A mixin with a few classes and attributes for data that can be published to the VO registry.

In particular, this contains the publish element (registration attribute).

Instance Methods
 
getPublicationsForSet(self, setNames)
returns a sequence of publication elements for the data, suitable for OAI responses for the sets setNames.
source code

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

Properties

Inherited from object: __class__

Method Details

getPublicationsForSet(self, setNames)

source code 

returns a sequence of publication elements for the data, suitable for OAI responses for the sets setNames.

Essentially: if registration is None, or its sets don't match setNames, return an emtpy sequence.

If the registration mentions services, we turn their publications into auxiliary publications and yield them

Otherwise, if we're published for ADQL, return the TAP service as an auxiliary publication.