Back to index

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

List of all members.

Public Member Functions

def __init__
def getId
def allowed
def getRolesInContext

Public Attributes

 id

Static Public Attributes

 getUserName = getId

Private Member Functions

def _check_context

Detailed Description

A dummy User.

Definition at line 302 of file dummy.py.


Constructor & Destructor Documentation

def CMFCore.tests.base.dummy.DummyUser.__init__ (   self,
  id = 'dummy' 
)

Definition at line 306 of file dummy.py.

00306 
00307     def __init__(self, id='dummy'):
00308         self.id = id


Member Function Documentation

def CMFCore.tests.base.dummy.DummyUser._check_context (   self,
  object 
) [private]

Definition at line 325 of file dummy.py.

00325 
00326     def _check_context(self, object):
00327         return 1
00328 

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyUser.allowed (   self,
  object,
  object_roles = None 
)

Definition at line 314 of file dummy.py.

00314 
00315     def allowed(self, object, object_roles=None):
00316         if object_roles is None or 'Anonymous' in object_roles:
00317             return 1
00318         for role in object_roles:
00319             if role in self.getRolesInContext(object):
00320                 return 1
00321         return 0

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 309 of file dummy.py.

00309 
00310     def getId(self):
00311         return self.id

Definition at line 322 of file dummy.py.

00322 
00323     def getRolesInContext(self, object):
00324         return ('Authenticated', 'Dummy', 'Member')

Here is the caller graph for this function:


Member Data Documentation

Definition at line 312 of file dummy.py.

Definition at line 307 of file dummy.py.


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