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