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
Collaboration diagram for CMFCore.tests.base.dummy.DummyUser:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def getId
def allowed
def getRolesInContext

Public Attributes


Static Public Attributes

 getUserName = getId

Private Member Functions

def _check_context

Detailed Description

A dummy User.

Definition at line 302 of file

Constructor & Destructor Documentation

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

Definition at line 306 of file

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

Member Function Documentation

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

Definition at line 325 of file

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

Here is the caller graph for this function:

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

Definition at line 314 of file

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

00310     def getId(self):
00311         return

Definition at line 322 of file

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

Definition at line 307 of file

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