Commit ce95f358 authored by Romain Courteaud's avatar Romain Courteaud 🐸

Do not hardcode default value for simulation state parameter, as it should not...

Do not hardcode default value for simulation state parameter, as it should not have a different behaviour than others workflow state variables.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19686 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d37645b
......@@ -73,11 +73,9 @@ def dateRangeProc(s):
return ()
# parsing defined here
simulation_states=()
r=re.compile('(\w+:"[^"]+"|\w+:\([^)]+\)|\w+:[\(\),\w/\-.]+)')
filetyper=lambda s:('source_reference','%%.%s' % s)
filestripper=lambda s: ('source_reference',s.replace('"',''))
#addarchived=lambda s: ('simulation_state',simulation_states+('archived',))
state=lambda s:('simulation_state',parsestates(s))
type=lambda s:('portal_type',parsestates(s))
paramsmap=dict(file=filestripper,type=type,reference='reference',filetype=filetyper,state=state,\
......@@ -93,7 +91,6 @@ def parsestates(s):
def analyze(params):
params['searchabletext']=''
params['simulation_state']=simulation_states
def cutter(s):
ss=s.split(':')
if len(ss)==1:
......
853
\ No newline at end of file
854
\ No newline at end of file
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