Back to index

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

List of all members.

Public Member Functions

def __creatable_by_emergency_user__
def __init__
def getId
def getUserSourceId
def isValid
def header_text
def getUserFolder
def getUserNames

Public Attributes

 id

Static Public Attributes

int isAnObjectManager = 1
int isPrincipiaFolderish = 1
tuple manage_main = DTMLFile('dtml/GRUFFolder_main', globals())
tuple manage_options = ( {'label':'Contents', 'action':'manage_main'}, )
tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 77 of file GRUFFolder.py.


Constructor & Destructor Documentation

def GroupUserFolder.GRUFFolder.GRUFFolder.__init__ (   self,
  id = None 
)

Definition at line 87 of file GRUFFolder.py.

00087 
00088     def __init__(self, id = None):
00089         if id:
00090             self.id = id
00091         else:
00092             self.id = self.default_id


Member Function Documentation

Definition at line 85 of file GRUFFolder.py.

00085 
00086     def __creatable_by_emergency_user__(self): return 1

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 in GroupUserFolder.GRUFFolder.GRUFGroups, and GroupUserFolder.GRUFFolder.GRUFUsers.

Definition at line 111 of file GRUFFolder.py.

00111 
00112     def header_text(self,):
00113         """
00114         header_text(self,) => Text that appears in the content's
00115                               view heading zone
00116         """
00117         return ""

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:


Member Data Documentation

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]

Definition at line 80 of file GRUFFolder.py.

tuple GroupUserFolder.GRUFFolder.GRUFFolder.manage_options = ( {'label':'Contents', 'action':'manage_main'}, ) [static]

Reimplemented in GroupUserFolder.GRUFFolder.GRUFUsers.

Definition at line 81 of file GRUFFolder.py.

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

Definition at line 84 of file GRUFFolder.py.


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