Package gavo :: Package base :: Module metavalidation :: Class MetaExists
[frames] | no frames]

Class MetaExists

source code

   object --+    
            |    
MetaAssertion --+
                |
               MetaExists

An assertion that a meta item is present for key in whatever form.

Instance Methods
 
check(self, metaCarrier)
returns None if the assertion is true, a user-displayable string of what failed otherwise.
source code

Inherited from MetaAssertion: __init__

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

Properties

Inherited from object: __class__

Method Details

check(self, metaCarrier)

source code 

returns None if the assertion is true, a user-displayable string of what failed otherwise.

This must be overridden in derived classes.

Parameters:
  • metaCarrier - an object mixing in MetaMixin.
Overrides: MetaAssertion.check
(inherited documentation)