Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Attributes
GroupUserFolder.GroupUserFolder.treeWrapper Class Reference

List of all members.

Public Member Functions

def __init__
def id
def sortId
def tpValues
def tpId
def tpURL

Public Attributes

 name
 icon
 is_group
 path
 subobjects

Private Attributes

 _id

Detailed Description

treeWrapper: Wrapper around user/group objects for the tree

Definition at line 2755 of file GroupUserFolder.py.


Constructor & Destructor Documentation

def GroupUserFolder.GroupUserFolder.treeWrapper.__init__ (   self,
  id,
  tree,
  parents = [] 
)
__init__(self, id, tree, parents = []) => wraps the user object for dtml-tree

Definition at line 2759 of file GroupUserFolder.py.

02759 
02760     def __init__(self, id, tree, parents = []):
02761         """
02762         __init__(self, id, tree, parents = []) => wraps the user object for dtml-tree
02763         """
02764         # Prepare self-contained information
02765         self._id = id
02766         self.name = tree[id]['name']
02767         self.icon = tree[id]['icon']
02768         self.is_group = tree[id]['is_group']
02769         parents.append(id)
02770         self.path = parents
02771 
02772         # Prepare subobjects information
02773         subobjects = []
02774         for grp_id in tree.keys():
02775             if id in tree[grp_id]['belongs_to']:
02776                 subobjects.append(treeWrapper(grp_id, tree, parents))
02777         subobjects.sort(lambda x, y: cmp(x.sortId(), y.sortId()))
02778         self.subobjects = subobjects


Member Function Documentation

Definition at line 2779 of file GroupUserFolder.py.

02779 
02780     def id(self,):
02781         return self.name

Here is the caller graph for this function:

Definition at line 2782 of file GroupUserFolder.py.

02782 
02783     def sortId(self,):
02784         if self.is_group:
02785             return "__%s" % (self._id,)
02786         else:
02787             return self._id

Definition at line 2794 of file GroupUserFolder.py.

02794 
02795     def tpId(self,):
02796         return self._id

Here is the caller graph for this function:

Definition at line 2797 of file GroupUserFolder.py.

02797 
02798     def tpURL(self,):
02799         return self.tpId()
02800 
02801 InitializeClass(GroupUserFolder)

Here is the call graph for this function:

Return 'subobjects'

Definition at line 2788 of file GroupUserFolder.py.

02788 
02789     def tpValues(self,):
02790         """
02791         Return 'subobjects'
02792         """
02793         return self.subobjects


Member Data Documentation

Definition at line 2764 of file GroupUserFolder.py.

Definition at line 2766 of file GroupUserFolder.py.

Definition at line 2767 of file GroupUserFolder.py.

Definition at line 2765 of file GroupUserFolder.py.

Definition at line 2769 of file GroupUserFolder.py.

Definition at line 2777 of file GroupUserFolder.py.


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