Package turbogears :: Package identity :: Module conditions :: Class Any

Class Any

source code

   object --+        
            |        
    Predicate --+    
                |    
CompoundPredicate --+
                    |
                   Any
Known Subclasses:

Logical 'or' of all sub-predicates.

This compound predicate evaluates to true if any one of its sub-predicates evaluates to true for the given input.

Instance Methods
 
eval_with_object(self, obj, errors=None)
Return true if any sub-predicate evaluates 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 = 'No predicate was able to grant access'
Properties

Inherited from object: __class__

Method Details

eval_with_object(self, obj, errors=None)

source code 

Return true if any sub-predicate evaluates to true.

Overrides: Predicate.eval_with_object