Package turbogears :: Package identity :: Module conditions :: Class has_any_permission

Class has_any_permission

source code

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

Predicate for checking whether visitor has at least one permission.

Instance Methods
 
__init__(self, *permissions)
x.__init__(...) initializes x; see help(type(x)) 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 = "No matching permissions: %(permission_list)s"
Properties

Inherited from object: __class__

Method Details

__init__(self, *permissions)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)