#94: Replace IndexIterator with a generator
- Proposed by
- D. Whit Morriss
- Seconded by
- Christian 'Tiran' Heimes
- Proposal type
- User interface, Architecture
- Repository branch
- 2.1-tabindex-removal
- State
- rejected
Motivation
The fate of tabindexes are up for debate, but the current method of kludging a import from Products.CMFPlone into a zpt is an ugly hack that makes Plone's skins incompatible with Zope 2.8's z3 views
Replacing this hack with a method on the PloneTool that return a configurable iterator allows for gentle backward compatibility, a small bump in performance, and the use of z3 views.
Assumptions
Complete removal of tabindexes is not dealt with here.
Proposal
same as summary
Implementation
Plone: Add getTabIndexIterator to PloneTool[done].
replace all calls to IndexIterator with calls to PloneTool[done]
AT: removal of all IndexIterator calls, additon of getTabIndexIterator to ATTool
Deliverables
Unit tests for new methods on ATTool and PloneTool
Risks
anyone who has called IndexIterator in the old fashion from a template will experience breakage
Progress log
branch on plone is done.
need to submit patch to AT