Package gavo :: Package registry :: Module nonservice :: Class ResRec
[frames] | no frames]

Class ResRec

source code

                               object --+    
                                        |    
               rscdef.common.IVOMetaMixin --+
                                            |
                   object --+               |
                            |               |
 base.structure.StructureBase --+           |
                                |           |
                   object --+   |           |
                            |   |           |
           base.common.Parser --+           |
                                |           |
base.structure.ParseableStructure --+       |
                                    |       |
             base.structure.Structure --+   |
                                        |   |
                       object --+       |   |
                                |       |   |
         base.macros.MacroPackage --+   |   |
                                    |   |   |
       base.macros.StandardMacroMixin --+   |
                                        |   |
                       object --+       |   |
                                |       |   |
              base.meta.MetaMixin --+   |   |
                                    |   |   |
          base.meta.ComputedMetaMixin --+   |
                                        |   |
                       NonServiceResource --+
                                            |
                                           ResRec

A resource for pure registration purposes.

A Resource without DaCHS defined behaviour. This can be Organizations or Instruments, but possibly also external services

All resources must either have an id (which is used in the construction of their IVOID), or you must give an identifier meta item.

You must further set the following meta items:

Additional meta keys (e.g., accessURL for a registry) may be required depending on resType. See the registry section in the operator's guide.

ResRecs can also have publication children. These will be turned into the appropriate capabilities depending on the value of the render attribute.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
getPublicationsForSet(self, names)
returns publications for set names in names.
source code
 
getFullId(self) source code

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, completeElement, finishElement, onElementComplete, validate

Inherited from base.structure.ParseableStructure: __init__, end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from base.structure.StructureBase: __providedBy__, adopt, breakCircles, change, copy, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

Inherited from base.common.Parser: feedEvent

Inherited from base.macros.StandardMacroMixin: macro_RSTservicelink, macro_RSTtable, macro_decapitalize, macro_getConfig, macro_internallink, macro_magicEmpty, macro_metaSeq, macro_metaString, macro_rdId, macro_rdIdDotted, macro_schema, macro_test, macro_today, macro_upper, macro_urlquote

Inherited from base.macros.MacroPackage: execMacro, expand, getExpander, listMacros, macro_quote, macro_reSub, macro_sql_standardPubDID, macro_sqlquote

Inherited from base.meta.ComputedMetaMixin: getMetaKeys

Inherited from base.meta.MetaMixin: addMeta, buildRepr, copyMetaFrom, delMeta, getAllMetaPairs, getMeta, getMetaParent, isEmpty, iterMeta, keys, makeOriginal, setMeta, setMetaParent, traverse

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

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  name_ = 'resRec'
a sentinel for all kinds of undefined values.
  attrSeq = [<gavo.base.parsecontext.IdAttribute object>, <gavo....
  managedAttrs = {'id': <gavo.base.parsecontext.IdAttribute obje...

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties
  rd

Inherited from object: __class__

Method Details

getPublicationsForSet(self, names)

source code 

returns publications for set names in names.

names must be a python set.


Class Variable Details

attrSeq

Value:
[<gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.meta.MetaAttribute object>,
 <gavo.base.complexattrs.StructListAttribute object>,
 <gavo.rscdef.common.RDAttribute object>]

managedAttrs

Value:
{'id': <gavo.base.parsecontext.IdAttribute object>,
 'meta': <gavo.base.meta.MetaAttribute object>,
 'meta_': <gavo.base.meta.MetaAttribute object>,
 'publications': <gavo.base.complexattrs.StructListAttribute object>,
 'publish': <gavo.base.complexattrs.StructListAttribute object>,
 'rd': <gavo.rscdef.common.RDAttribute object>}

Property Details

rd

Get Method:
unreachable._getRD(self)