Package gavo :: Package base :: Module meta :: Class MetaURL
[frames] | no frames]

Class MetaURL

source code

object --+        
         |        
 MetaMixin --+    
             |    
     MetaValue --+
                 |
                MetaURL

A meta value containing a link and optionally a title

In plain text, this would look like this:

       _related:http://foo.bar
       _related.title: The foo page

In XML, you can write:

               <meta name="_related" title="The foo page"
                       ivoId="ivo://bar.org/foo">http://foo.bar</meta>

or, if you prefer:

       <meta name="_related">http://foo.bar
                <meta name="title">The foo page</meta></meta>

These values are used for _related (meaning "visible" links to other services).

For links within you data center, use the internallink macro, the argument of which the the "path" to a resource, i.e. RD path/service/renderer; we recommend to use the info renderer in such links as a rule. This would look like this:

       <meta name="_related" title="Aspec SSAP"
               >\internallink{aspec/q/ssa/info}</meta>
Instance Methods
 
__init__(self, url, format='plain', title=None)
is a constructor for standalone use.
source code

Inherited from MetaValue: __str__, __unicode__, copy, encode, getContent, getExpandedContent

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

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

Class Variables

Inherited from MetaValue: consecutiveWSPat, knownFormats, paragraphPat, plainWrapper

Properties

Inherited from object: __class__

Method Details

__init__(self, url, format='plain', title=None)
(Constructor)

source code 

is a constructor for standalone use. You do *not* want to call this when mixing into a Structure.

Overrides: object.__init__
(inherited documentation)