Commit 442a80ad authored by Sebastien Robin's avatar Sebastien Robin

sorry to commit this, this should be configurable through zope


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3942 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd9b6643
......@@ -701,3 +701,23 @@ class FakeMovement:
else:
raise "FakeMovementError",\
"Could not call edit on Fakeovement with parameters: %r" % key
# XXX This should not be here
# I (seb) have commited this because movement groups are not
# yet configurable through the zope web interface
class IntIndexMovementGroup(RootMovementGroup):
def __init__(self,movement,**kw):
RootMovementGroup.__init__(self, movement=movement, **kw)
self.int_index = movement.getIntIndex()
self.setGroupEdit(
int_index=movement.getIntIndex()
)
def test(self,movement):
if movement.getIntIndex() == self.int_index :
return 1
else :
return 0
allow_class(IntIndexMovementGroup)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment