Commit 0680fa89 authored by Sebastien Robin's avatar Sebastien Robin

updated


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3943 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 442a80ad
...@@ -707,15 +707,27 @@ class FakeMovement: ...@@ -707,15 +707,27 @@ class FakeMovement:
# yet configurable through the zope web interface # yet configurable through the zope web interface
class IntIndexMovementGroup(RootMovementGroup): class IntIndexMovementGroup(RootMovementGroup):
def getIntIndex(self,movement):
order_value = movement.getOrderValue()
int_index = 0
if order is not None:
if "Line" in order_value.getPortalType():
int_index = order_value.getIntIndex()
elif "Cell" in order_value.getPortalType():
int_index = order_value.getParentValue().getIntIndex()
return int_index
def __init__(self,movement,**kw): def __init__(self,movement,**kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
self.int_index = movement.getIntIndex() int_index = self.getIntIndex(movement)
self.int_index = int_index
self.setGroupEdit( self.setGroupEdit(
int_index=movement.getIntIndex() int_index=int_index
) )
def test(self,movement): def test(self,movement):
if movement.getIntIndex() == self.int_index : int_index = self.getIntIndex(movement)
if self.getIntIndex(movement) == self.int_index :
return 1 return 1
else : else :
return 0 return 0
......
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