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:
helmutm 2006-01-27 08:51:45 +00:00
parent da07ee465c
commit 26793cf43a

View file

@ -5,12 +5,7 @@ Ordered Containers
Let's add an ordered container and place some objects in it: Let's add an ordered container and place some objects in it:
>>> from zope.interface import implements >>> from zope.app.container.ordered import OrderedContainer
>>> from zope.app.container.interfaces import IOrderedContainer
>>> import zope.app.container.ordered
>>> class OrderedContainer(zope.app.container.ordered.OrderedContainer):
... implements(IOrderedContainer)
>>> c1 = OrderedContainer() >>> c1 = OrderedContainer()
>>> c1['sub1'] = OrderedContainer() >>> c1['sub1'] = OrderedContainer()
>>> c1['sub2'] = OrderedContainer() >>> c1['sub2'] = OrderedContainer()