Refactored ordered container stuff out of loops package and put into cybertools.container
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1040 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
027113973f
commit
b4182316af
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,6 @@
|
|||
<div metal:define-macro="contents">
|
||||
|
||||
<tal:checkmove define="dummy view/checkMoveAction">
|
||||
|
||||
<form name="containerContentsForm" method="post" action="."
|
||||
tal:attributes="action request/URL"
|
||||
tal:define="container_contents view/listContentInfo">
|
||||
|
|
|
@ -26,6 +26,7 @@ from zope.app import zapi
|
|||
from zope.app.container.ordered import OrderedContainer as BaseOrderedContainer
|
||||
from zope.cachedescriptors.property import Lazy
|
||||
from zope.app.container.browser.contents import JustContents
|
||||
from zope.app.i18n import ZopeMessageFactory as _
|
||||
|
||||
|
||||
class OrderedContainerView(JustContents):
|
||||
|
@ -44,9 +45,9 @@ class OrderedContainerView(JustContents):
|
|||
delta = request.get('delta', 1)
|
||||
ids = request.get('ids', [])
|
||||
if ids:
|
||||
m = getattr(self, var, None)
|
||||
if m:
|
||||
m(ids, delta)
|
||||
getattr(self, var, None)(ids, delta)
|
||||
else:
|
||||
self.error = _("You didn't specify any ids to move.")
|
||||
return
|
||||
|
||||
def move_down(self, ids=[], delta=1):
|
||||
|
|
Loading…
Add table
Reference in a new issue