Refactored ordered container stuff out of loops package and put into cybertools.container
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1038 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
da07ee465c
commit
26793cf43a
1 changed files with 1 additions and 6 deletions
|
@ -5,12 +5,7 @@ Ordered Containers
|
|||
|
||||
Let's add an ordered container and place some objects in it:
|
||||
|
||||
>>> from zope.interface import implements
|
||||
>>> from zope.app.container.interfaces import IOrderedContainer
|
||||
>>> import zope.app.container.ordered
|
||||
>>> class OrderedContainer(zope.app.container.ordered.OrderedContainer):
|
||||
... implements(IOrderedContainer)
|
||||
|
||||
>>> from zope.app.container.ordered import OrderedContainer
|
||||
>>> c1 = OrderedContainer()
|
||||
>>> c1['sub1'] = OrderedContainer()
|
||||
>>> c1['sub2'] = OrderedContainer()
|
||||
|
|
Loading…
Add table
Reference in a new issue