Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Private Attributes
CMFPlone.utils.IndexIterator Class Reference

List of all members.

Public Member Functions

def __init__
def next

Public Attributes


Static Private Attributes

int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

BBB: This iterator was us ed for tabindex use, but for accessibility 
   reasons, we have deprecated it, and it now returns None always. Should 
   be removed in Plone 4.0.
   Below are the different use cases we used to have, all return None now:

    >>> i = IndexIterator(pos=10, mainSlot=True)
    >>> is None

   The default start value gets "None"

    >>> i = IndexIterator(mainSlot=True)
    >>> is None

   Subsequent iterations will get None (thus removing the tabindex

    >>> is None

   Outside the mainSlot all iterations will get None:

    >>> i = IndexIterator(pos=10, mainSlot=False)
    >>> is None

    >>> is None

    >>> i = IndexIterator(mainSlot=False)
    >>> is None

Definition at line 249 of file

Constructor & Destructor Documentation

def CMFPlone.utils.IndexIterator.__init__ (   self,
  upper = 100000,
  pos = 1,
  mainSlot = True 

Definition at line 287 of file

00288     def __init__(self, upper=100000, pos=1, mainSlot=True):
00289         self.upper=upper
00290         self.pos=pos
00291         self.mainSlot=mainSlot

Member Function Documentation

Definition at line 292 of file

00293     def next(self):
00294         return None

Member Data Documentation

Definition at line 285 of file

Definition at line 290 of file

Definition at line 289 of file

Definition at line 288 of file

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