Back to index

plone3  3.1.7
Public Member Functions
GroupUserFolder.GRUFFolder.GRUFGroups.C__ac_roles__ Class Reference
Inheritance diagram for GroupUserFolder.GRUFFolder.GRUFGroups.C__ac_roles__:
Inheritance graph
[legend]
Collaboration diagram for GroupUserFolder.GRUFFolder.GRUFGroups.C__ac_roles__:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def data
def __repr__
def __lt__
def __le__
def __eq__
def __ne__
def __gt__
def __ge__
def __cmp__
def __contains__
def __len__
def __getitem__
def __setitem__
def __delitem__
def __getslice__
def __setslice__
def __delslice__
def __add__
def __radd__
def __iadd__
def __mul__
def __imul__
def append
def insert
def pop
def remove
def count
def index
def reverse
def sort
def extend

Detailed Description

__ac_roles__ dynastring.
Do not forget to set _target to class instance.

XXX DynaList is surely not efficient but it's the only way
I found to do what I wanted easily. Someone should take
a look to PerstList instead to see if it's possible
to do the same ? (ie. having a list which elements are
the results of a method call).

However, even if DynaList is not performant, it's not
a critical point because this list is meant to be
looked at only when a User object is looked at INSIDE
GRUF (especially to set groups a user belongs to).
So in practice only used within ZMI.

Definition at line 235 of file GRUFFolder.py.


Member Function Documentation

def GroupUserFolder.DynaList.DynaList.__add__ (   self,
  other 
) [inherited]

Definition at line 62 of file DynaList.py.

00062 
00063     def __add__(self, other):
00064         if isinstance(other, UserList):
00065             return self.__class__(self.data() + other.data())
00066         elif isinstance(other, type(self.data())):
00067             return self.__class__(self.data() + other)
00068         else:
            return self.__class__(self.data() + list(other))

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__cmp__ (   self,
  other 
) [inherited]

Definition at line 41 of file DynaList.py.

00041 
00042     def __cmp__(self, other):
        raise RuntimeError, "UserList.__cmp__() is obsolete"
def GroupUserFolder.DynaList.DynaList.__contains__ (   self,
  item 
) [inherited]

Definition at line 43 of file DynaList.py.

00043 
    def __contains__(self, item): return item in self.data()
def GroupUserFolder.DynaList.DynaList.__delitem__ (   self,
  i 
) [inherited]

Definition at line 47 of file DynaList.py.

00047 
    def __delitem__(self, i): del self.data()[i]
def GroupUserFolder.DynaList.DynaList.__delslice__ (   self,
  i,
  j 
) [inherited]

Definition at line 59 of file DynaList.py.

00059 
00060     def __delslice__(self, i, j):
00061         i = max(i, 0); j = max(j, 0)
        del self.data()[i:j]

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__eq__ (   self,
  other 
) [inherited]

Definition at line 34 of file DynaList.py.

00034 
    def __eq__(self, other): return self.data() == self.__cast(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__ge__ (   self,
  other 
) [inherited]

Definition at line 37 of file DynaList.py.

00037 
    def __ge__(self, other): return self.data() >= self.__cast(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__getitem__ (   self,
  i 
) [inherited]

Definition at line 45 of file DynaList.py.

00045 
    def __getitem__(self, i): return self.data()[i]

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.__getslice__ (   self,
  i,
  j 
) [inherited]

Definition at line 48 of file DynaList.py.

00048 
00049     def __getslice__(self, i, j):
00050         i = max(i, 0); j = max(j, 0)
        return self.__class__(self.data()[i:j])

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__gt__ (   self,
  other 
) [inherited]

Definition at line 36 of file DynaList.py.

00036 
    def __gt__(self, other): return self.data() >  self.__cast(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__iadd__ (   self,
  other 
) [inherited]

Definition at line 76 of file DynaList.py.

00076 
00077     def __iadd__(self, other):
00078         raise NotImplementedError, "Not implemented"

def GroupUserFolder.DynaList.DynaList.__imul__ (   self,
  n 
) [inherited]

Definition at line 82 of file DynaList.py.

00082 
00083     def __imul__(self, n):
        raise NotImplementedError, "Not implemented"
def GroupUserFolder.DynaList.DynaList.__le__ (   self,
  other 
) [inherited]

Definition at line 33 of file DynaList.py.

00033 
    def __le__(self, other): return self.data() <= self.__cast(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__len__ (   self) [inherited]

Definition at line 44 of file DynaList.py.

00044 
    def __len__(self): return len(self.data())

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__lt__ (   self,
  other 
) [inherited]

Definition at line 32 of file DynaList.py.

00032 
    def __lt__(self, other): return self.data() <  self.__cast(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__mul__ (   self,
  n 
) [inherited]

Definition at line 79 of file DynaList.py.

00079 
00080     def __mul__(self, n):
        return self.__class__(self.data()*n)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__ne__ (   self,
  other 
) [inherited]

Definition at line 35 of file DynaList.py.

00035 
    def __ne__(self, other): return self.data() != self.__cast(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__radd__ (   self,
  other 
) [inherited]

Definition at line 69 of file DynaList.py.

00069 
00070     def __radd__(self, other):
00071         if isinstance(other, UserList):
00072             return self.__class__(other.data() + self.data())
00073         elif isinstance(other, type(self.data())):
00074             return self.__class__(other + self.data())
00075         else:
            return self.__class__(list(other) + self.data())

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__repr__ (   self) [inherited]

Definition at line 31 of file DynaList.py.

00031 
    def __repr__(self): return repr(self.data())

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.__setitem__ (   self,
  i,
  item 
) [inherited]

Definition at line 46 of file DynaList.py.

00046 
    def __setitem__(self, i, item): self.data()[i] = item

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.__setslice__ (   self,
  i,
  j,
  other 
) [inherited]

Definition at line 51 of file DynaList.py.

00051 
00052     def __setslice__(self, i, j, other):
00053         i = max(i, 0); j = max(j, 0)
00054         if isinstance(other, UserList):
00055             self.data()[i:j] = other.data()
00056         elif isinstance(other, type(self.data())):
00057             self.data()[i:j] = other
00058         else:
            self.data()[i:j] = list(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.append (   self,
  item 
) [inherited]

Definition at line 84 of file DynaList.py.

00084 
    def append(self, item): self.data().append(item)

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.count (   self,
  item 
) [inherited]

Definition at line 88 of file DynaList.py.

00088 
    def count(self, item): return self.data().count(item)

Definition at line 252 of file GRUFFolder.py.

00252 
00253         def data(self,):
00254             return self.userdefined_roles()
00255 
00256 
    ac_roles = C__ac_roles__()

Here is the call graph for this function:

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.extend (   self,
  other 
) [inherited]

Definition at line 92 of file DynaList.py.

00092 
00093     def extend(self, other):
00094         if isinstance(other, UserList):
00095             self.data().extend(other.data())
00096         else:
00097             self.data().extend(other)

Here is the call graph for this function:

def GroupUserFolder.DynaList.DynaList.index (   self,
  item 
) [inherited]

Definition at line 89 of file DynaList.py.

00089 
    def index(self, item): return self.data().index(item)

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.insert (   self,
  i,
  item 
) [inherited]

Definition at line 85 of file DynaList.py.

00085 
    def insert(self, i, item): self.data().insert(i, item)

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.pop (   self,
  i = -1 
) [inherited]

Definition at line 86 of file DynaList.py.

00086 
    def pop(self, i=-1): return self.data().pop(i)

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.remove (   self,
  item 
) [inherited]

Definition at line 87 of file DynaList.py.

00087 
    def remove(self, item): self.data().remove(item)
def GroupUserFolder.DynaList.DynaList.reverse (   self) [inherited]

Definition at line 90 of file DynaList.py.

00090 
    def reverse(self): self.data().reverse()

Here is the caller graph for this function:

def GroupUserFolder.DynaList.DynaList.sort (   self,
  args 
) [inherited]

Definition at line 91 of file DynaList.py.

00091 
    def sort(self, *args): apply(self.data().sort, args)

Here is the call graph for this function:


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