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

Class NewsMeta

source code

object --+        
         |        
 MetaMixin --+    
             |    
     MetaValue --+
                 |
                NewsMeta

A meta value representing a "news" items.

The content is the body of the news. In addition, they have date, author, and role children. In plain text, you would write:

 _news: Frobnicated the quux.
 _news.author: MD
 _news.date: 2009-03-06
 _news.role: updated

In XML, you would usually write:

 <meta name="_news" author="MD" date="2009-03-06">
   Frobnicated the quux.
 </meta>

_news items become serialised into Registry records despite their leading underscores. role then becomes the date's role.

Instance Methods
 
__init__(self, content, format='plain', author=None, date=None, role=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
  discardChildrenInHTML = True

Inherited from MetaValue: consecutiveWSPat, knownFormats, paragraphPat, plainWrapper

Properties

Inherited from object: __class__

Method Details

__init__(self, content, format='plain', author=None, date=None, role=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)