Refactored ordered container stuff out of loops package and put into cybertools.container

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1039 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2006-01-27 08:54:30 +00:00
parent 26793cf43a
commit 027113973f

View file

@ -67,7 +67,7 @@ class OrderedContainerView(JustContents):
def moveByDelta(objs, toMove, delta): def moveByDelta(objs, toMove, delta):
""" Return the list given by objs resorted in a way that the elements """ Return the list given by objs re-ordered in a way that the elements
of toMove (which must be in the objs list) have been moved by delta. of toMove (which must be in the objs list) have been moved by delta.
""" """
result = [obj for obj in objs if obj not in toMove] result = [obj for obj in objs if obj not in toMove]