Package turbogears :: Package identity :: Module conditions :: Class All

Class All

source code

   object --+        
            |        
    Predicate --+    
                |    
CompoundPredicate --+
                    |
                   All

Logical 'and' of all sub-predicates.

This compound predicate evaluates to true only if all of its sub-predicates evaluate to true for the given input.

Instance Methods
 
eval_with_object(self, obj, errors=None)
Return true if all 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 denied access"
Properties

Inherited from object: __class__

Method Details

eval_with_object(self, obj, errors=None)

source code 

Return true if all sub-predicates evaluate to true.

Overrides: Predicate.eval_with_object