Back to index

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

List of all members.

Public Member Functions

def __init__
def getUsers
def getUser
def getUserById
def userFolderDelUsers

Static Public Attributes

string id = 'acl_users'

Detailed Description

A dummy User Folder with 2 dummy Users.

Definition at line 329 of file dummy.py.


Constructor & Destructor Documentation

Definition at line 335 of file dummy.py.

00335 
00336     def __init__(self):
00337         setattr( self, 'user_foo', DummyUser(id='user_foo') )
00338         setattr( self, 'user_bar', DummyUser(id='user_bar') )
00339         setattr( self, 'all_powerful_Oz', OmnipotentUser() )


Member Function Documentation

Definition at line 343 of file dummy.py.

00343 
00344     def getUser(self, name):
00345         return getattr(self, name, None)

Here is the caller graph for this function:

def CMFCore.tests.base.dummy.DummyUserFolder.getUserById (   self,
  id,
  default = None 
)

Definition at line 346 of file dummy.py.

00346 
00347     def getUserById(self, id, default=None):
00348         return self.getUser(id)

Here is the call graph for this function:

Definition at line 340 of file dummy.py.

00340 
00341     def getUsers(self):
00342         pass

Definition at line 349 of file dummy.py.

00349 
00350     def userFolderDelUsers(self, names):
00351         for user_id in names:
00352             delattr(self, user_id)
00353 


Member Data Documentation

string CMFCore.tests.base.dummy.DummyUserFolder.id = 'acl_users' [static]

Definition at line 333 of file dummy.py.


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