Package turbogears :: Package identity :: Module conditions :: Class from_any_host

Class from_any_host

source code

     object --+            
              |            
      Predicate --+        
                  |        
  CompoundPredicate --+    
                      |    
                    Any --+
                          |
             object --+   |
                      |   |
IdentityPredicateHelper --+
                          |
                         from_any_host

Predicate for checking the visitor against a number of allowed hosts.

Instance Methods
 
__init__(self, hosts)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from Any: eval_with_object

Inherited from Predicate: append_error_message

Inherited from IdentityPredicateHelper: __nonzero__

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

Class Variables
  error_message = 'Access from this host is not permitted.'
Properties

Inherited from object: __class__

Method Details

__init__(self, hosts)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)