Back to index

plone3  3.1.7
Public Member Functions
GroupUserFolder.tests.testMultipleSources.TestMultipleSources Class Reference

List of all members.

Public Member Functions

def afterSetUp

Detailed Description

Definition at line 105 of file testMultipleSources.py.


Member Function Documentation

afterSetUp(self) => This method is called to create Folder with a GRUF inside.

Definition at line 107 of file testMultipleSources.py.

00107 
00108     def afterSetUp(self,):
00109         """
00110         afterSetUp(self) => This method is called to create Folder with a GRUF inside.
00111 
00112         """
00113         # Replace default acl_user by a GRUF one
00114         self.folder.manage_delObjects(['acl_users'])
00115         self.folder.manage_addProduct['GroupUserFolder'].manage_addGroupUserFolder()
00116 
00117         # Put back the default user inside
00118         self._setupUser()
00119 
00120         # Create a few roles
00121         self.folder._addRole("r1")
00122         self.folder._addRole("r2")
00123         self.folder._addRole("r3")
00124 
00125         # Create a few groups
00126         self.folder.acl_users._doAddGroup('g1', ())
00127         self.folder.acl_users._doAddGroup('g2', ('r1', ))
00128         self.folder.acl_users._doAddGroup('g3', ('r2', ))
00129         self.folder.acl_users._doAddGroup('g4', ('r2', 'r3', ))
00130 
00131         # Create nested groups
00132         self.folder.acl_users._doAddGroup('ng1', (), ('g1', ))
00133         self.folder.acl_users._doAddGroup('ng2', (), ('g2', 'g3', ))
00134         self.folder.acl_users._doAddGroup('ng3', (), ('g2', 'ng2', ))
00135         self.folder.acl_users._doAddGroup('ng4', ('r3', ), ('g2', 'ng2', ))
        self.folder.acl_users._doAddGroup('ng5', (), ('g2', 'ng4', ))

Here is the call graph for this function:


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