Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
ZopeVersionControl.SequenceWrapper.SequenceWrapper Class Reference

List of all members.

Public Member Functions

def __init__
def __getitem__
def __len__
def __nonzero__

Public Attributes

 parent
 items

Static Public Attributes

 pairs = None

Detailed Description

A helper that manages lazy acquisition wrapping.

Definition at line 18 of file SequenceWrapper.py.


Constructor & Destructor Documentation

def ZopeVersionControl.SequenceWrapper.SequenceWrapper.__init__ (   self,
  parent,
  items,
  pairs = None 
)

Definition at line 20 of file SequenceWrapper.py.

00020 
00021     def __init__(self, parent, items, pairs=None):
00022         if pairs is not None:
00023             self.pairs = 1
00024         self.parent = parent
00025         self.items = items


Member Function Documentation

Definition at line 28 of file SequenceWrapper.py.

00028 
00029     def __getitem__(self, key):
00030         item = self.items[key]
00031         if self.pairs is not None:
00032             return (item[0], item[1].__of__(self.parent))
00033         return item.__of__(self.parent)

Here is the caller graph for this function:

Definition at line 34 of file SequenceWrapper.py.

00034 
00035     def __len__(self):
00036         return len(self.items)

Definition at line 37 of file SequenceWrapper.py.

00037 
00038     def __nonzero__(self):
00039         return len(self.items) > 0
00040 

Member Data Documentation

Definition at line 24 of file SequenceWrapper.py.

Definition at line 26 of file SequenceWrapper.py.

Definition at line 23 of file SequenceWrapper.py.


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