Package turbogears :: Package identity :: Module conditions :: Class NotAny

Class NotAny

source code

   object --+        
            |        
    Predicate --+    
                |    
CompoundPredicate --+
                    |
                   NotAny

Locigal 'nor' of all sub-predicates.

A compound predicate that evaluates to true only if no sub-predicates evaluate to true for the given input.

Instance Methods
 
eval_with_object(self, obj, errors=None)
Return true if no sub-predicates evaluate to true.
source code

Inherited from CompoundPredicate: __init__

Inherited from Predicate: append_error_message

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

Class Variables
  error_message = "One of the predicates did not deny access"
Properties

Inherited from object: __class__

Method Details

eval_with_object(self, obj, errors=None)

source code 

Return true if no sub-predicates evaluate to true.

Overrides: Predicate.eval_with_object