Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Member Functions
CMFCore.tests.base.security.OmnipotentUser Class Reference
Inheritance diagram for CMFCore.tests.base.security.OmnipotentUser:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.tests.base.security.OmnipotentUser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getId
def getRoles
def allowed
def getRolesInContext

Static Public Attributes

 getUserName = getId

Private Member Functions

def _check_context

Detailed Description

  Omnipotent User for unit testing purposes.

Definition at line 54 of file security.py.


Member Function Documentation

def CMFCore.tests.base.security.OmnipotentUser._check_context (   self,
  object 
) [private]

Definition at line 72 of file security.py.

00072 
00073     def _check_context(self, object):
00074         return True
00075 

Here is the caller graph for this function:

def CMFCore.tests.base.security.OmnipotentUser.allowed (   self,
  object,
  object_roles = None 
)

Definition at line 66 of file security.py.

00066 
00067     def allowed( self, object, object_roles=None ):
00068         return 1

Here is the caller graph for this function:

Definition at line 58 of file security.py.

00058 
00059     def getId( self ):
00060         return 'all_powerful_Oz'

Definition at line 63 of file security.py.

00063 
00064     def getRoles(self):
00065         return ('Manager',)

Here is the caller graph for this function:

Definition at line 69 of file security.py.

00069 
00070     def getRolesInContext(self, object):
00071         return ('Manager',)


Member Data Documentation

Definition at line 61 of file security.py.


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