Back to index

plone3  3.1.7
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
GroupUserFolder.GRUFFolder.GRUFUsers Class Reference
Inheritance diagram for GroupUserFolder.GRUFFolder.GRUFUsers:
Inheritance graph
[legend]
Collaboration diagram for GroupUserFolder.GRUFFolder.GRUFUsers:
Collaboration graph
[legend]

List of all members.

Classes

class  C__ac_roles__

Public Member Functions

def enableSource
def disableSource
def isEnabled
def header_text
def listGroups
def userdefined_roles
def __creatable_by_emergency_user__
def getId
def getUserSourceId
def isValid
def getUserFolder
def getUserNames

Public Attributes

 enabled
 id

Static Public Attributes

string meta_type = "GRUFUsers"
string default_id = "Users"
 manage_options = GRUFFolder.manage_options
tuple ac_roles = C__ac_roles__()
int enabled = 1
int isAnObjectManager = 1
int isPrincipiaFolderish = 1
tuple manage_main = DTMLFile('dtml/GRUFFolder_main', globals())
tuple security = ClassSecurityInfo()

Static Private Attributes

 __ac_roles__ = ac_roles

Detailed Description

GRUFUsers : GRUFFolder that holds users

Definition at line 145 of file GRUFFolder.py.


Member Function Documentation

Definition at line 85 of file GRUFFolder.py.

00085 
00086     def __creatable_by_emergency_user__(self): return 1

disableSource(self,) => explicit ;)

Definition at line 186 of file GRUFFolder.py.

00186 
00187     def disableSource(self,):
00188         """disableSource(self,) => explicit ;)
00189         """
00190         self.enabled = None

enableSource(self,) => Set enable status to 1

Definition at line 181 of file GRUFFolder.py.

00181 
00182     def enableSource(self,):
00183         """enableSource(self,) => Set enable status to 1
00184         """
00185         self.enabled = 1

def GroupUserFolder.GRUFFolder.GRUFFolder.getId (   self) [inherited]

Definition at line 93 of file GRUFFolder.py.

00093 
00094     def getId(self,):
00095         if self.id:
00096             return self.id
00097         else:
00098             return self.default_id      # Used for b/w compatibility

getUserFolder(self,) => get the underlying user folder, UNRESTRICTED !

Definition at line 118 of file GRUFFolder.py.

00118 
00119     def getUserFolder(self,):
00120         """
00121         getUserFolder(self,) => get the underlying user folder, UNRESTRICTED !
00122         """
00123         if not "acl_users" in self.objectIds():
00124             raise "ValueError", "Please put an acl_users in %s " \
00125                                 "before using GRUF" % (self.getId(),)
00126         return self.restrictedTraverse('acl_users')

getUserNames(self,) => None

We override this to prevent SimpleUserFolder to use GRUF's getUserNames() method.
It's, of course, still possible to override a getUserNames method with SimpleUserFolder:
just call it 'new_getUserNames'.

Definition at line 127 of file GRUFFolder.py.

00127 
00128     def getUserNames(self,):
00129         """
00130         getUserNames(self,) => None
00131 
00132         We override this to prevent SimpleUserFolder to use GRUF's getUserNames() method.
00133         It's, of course, still possible to override a getUserNames method with SimpleUserFolder:
00134         just call it 'new_getUserNames'.
00135         """
00136         # Call the "new_getUserNames" method if available
00137         if "new_getUserNames" in self.objectIds():
00138             return self.unrestrictedTraverse('new_getUserNames')()
00139 
00140         # Return () if nothing is there
00141         return ()
00142 
00143 
00144 

Here is the call graph for this function:

Definition at line 99 of file GRUFFolder.py.

00099 
00100     def getUserSourceId(self,):
00101         return self.getId()

Here is the caller graph for this function:

header_text(self,) => Text that appears in the content's view
              heading zone

Reimplemented from GroupUserFolder.GRUFFolder.GRUFFolder.

Definition at line 197 of file GRUFFolder.py.

00197 
00198     def header_text(self,):
00199         """
00200         header_text(self,) => Text that appears in the content's view
00201                               heading zone
00202         """
00203         if not "acl_users" in self.objectIds():
00204             return "Please put an acl_users here before ever " \
00205                    "starting to use this object."
00206 
00207         ret = """In this folder, groups are seen as ROLES from user's
00208                  view. To put a user into a group, affect him a role
00209                  that matches his group.<br />"""
00210 
00211         return ret
00212 

Here is the call graph for this function:

Return true if enabled (surprisingly)

Definition at line 191 of file GRUFFolder.py.

00191 
00192     def isEnabled(self,):
00193         """
00194         Return true if enabled (surprisingly)
00195         """
00196         return not not self.enabled

isValid(self,) => Return true if an acl_users is inside

Definition at line 102 of file GRUFFolder.py.

00102 
00103     def isValid(self,):
00104         """
00105         isValid(self,) => Return true if an acl_users is inside
00106         """
00107         if "acl_users" in self.objectIds():
00108             return 1
00109         return None

Here is the call graph for this function:

listGroups(self,) => return a list of groups defined as roles

Definition at line 213 of file GRUFFolder.py.

00213 
00214     def listGroups(self,):
00215         """
00216         listGroups(self,) => return a list of groups defined as roles
00217         """
00218         return self.Groups.restrictedTraverse('listGroups')()
00219 

Here is the caller graph for this function:

Definition at line 220 of file GRUFFolder.py.

00220 
00221     def userdefined_roles(self):
00222         "Return list of user-defined roles"
00223         return self.listGroups()
00224 

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 177 of file GRUFFolder.py.

Definition at line 176 of file GRUFFolder.py.

Definition at line 150 of file GRUFFolder.py.

Definition at line 179 of file GRUFFolder.py.

Definition at line 184 of file GRUFFolder.py.

Definition at line 89 of file GRUFFolder.py.

Definition at line 78 of file GRUFFolder.py.

Definition at line 79 of file GRUFFolder.py.

tuple GroupUserFolder.GRUFFolder.GRUFFolder.manage_main = DTMLFile('dtml/GRUFFolder_main', globals()) [static, inherited]

Definition at line 80 of file GRUFFolder.py.

Reimplemented from GroupUserFolder.GRUFFolder.GRUFFolder.

Definition at line 152 of file GRUFFolder.py.

string GroupUserFolder.GRUFFolder.GRUFUsers.meta_type = "GRUFUsers" [static]

Definition at line 149 of file GRUFFolder.py.

tuple GroupUserFolder.GRUFFolder.GRUFFolder.security = ClassSecurityInfo() [static, inherited]

Definition at line 84 of file GRUFFolder.py.


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