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

 upper
 pos
 mainSlot

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)
    >>> i.next() is None
    True

   The default start value gets "None"

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

   Subsequent iterations will get None (thus removing the tabindex
   attribute):

    >>> i.next() is None
    True

   Outside the mainSlot all iterations will get None:

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

    >>> i.next() is None
    True

    >>> i = IndexIterator(mainSlot=False)
    >>> i.next() is None
    True

Definition at line 249 of file utils.py.


Constructor & Destructor Documentation

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

Definition at line 287 of file utils.py.

00287 
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 utils.py.

00292 
00293     def next(self):
00294         return None


Member Data Documentation

Definition at line 285 of file utils.py.

Definition at line 290 of file utils.py.

Definition at line 289 of file utils.py.

Definition at line 288 of file utils.py.


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