Commit 12f08d30 authored by Jérome Perrin's avatar Jérome Perrin

add more flexibility for naming steps


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3538 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5267cb89
...@@ -94,9 +94,9 @@ class SequenceList: ...@@ -94,9 +94,9 @@ class SequenceList:
def addSequenceString(self,sequence_string): def addSequenceString(self,sequence_string):
""" """
The sequence string should be a string of method names The sequence string should be a string of method names
separated by spaces separated by spaces or \n
""" """
step_list = sequence_string.split(' ') step_list = sequence_string.split()
self.addSequenceStringList(step_list) self.addSequenceStringList(step_list)
def addSequenceStringList(self,step_list): def addSequenceStringList(self,step_list):
...@@ -104,6 +104,8 @@ class SequenceList: ...@@ -104,6 +104,8 @@ class SequenceList:
sequence = Sequence() sequence = Sequence()
for step in step_list: for step in step_list:
if step != '': if step != '':
if step.startswith('step') :
step = step[4:]
sequence.addStep(step) sequence.addStep(step)
self.addSequence(sequence) self.addSequence(sequence)
......
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