Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def __init__
def getId
def getRoles
def allowed

Static Public Attributes

 getUserName = getId

Private Attributes


Detailed Description

  User with roles specified in constructor
  for unit testing purposes.

Definition at line 76 of file

Constructor & Destructor Documentation

Definition at line 81 of file

00082     def __init__( self, *roles ):
00083         self._roles = roles

Member Function Documentation

def (   self,
  object_roles = None 

Definition at line 92 of file

00093     def allowed( self, object, object_roles=None ):
00094         if object_roles is None:
00095             object_roles=()
00096         for orole in object_roles:
00097             if orole in self._roles:
00098                 return 1
00099         return 0

Here is the caller graph for this function:

Definition at line 84 of file

00085     def getId( self ):
00086         return 'high_roller'

Definition at line 89 of file

00090     def getRoles(self):
00091         return self._roles

Here is the caller graph for this function:

Member Data Documentation

Definition at line 82 of file

Definition at line 87 of file

The documentation for this class was generated from the following file: