Commit d4a3d201 authored by Nicolas Dumazet's avatar Nicolas Dumazet

less indentation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42495 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 75ea7081
......@@ -697,13 +697,14 @@ def initializePortalTypeDynamicWorkflowMethods(self, klass, ptype, prop_holder,
method.registerTransitionAlways(ptype, wf_id, transition_id)
method.registerTransitionAlways(ptype, wf_id, tr_id)
if interaction_workflow_dict:
# only compute once this (somehow) costly list
all_method_id_list = prop_holder.getAccessorMethodIdList() + \
prop_holder.getWorkflowMethodIdList() + \
prop_holder.getClassMethodIdList(klass)
else:
all_method_id_list = []
if not interaction_workflow_dict:
return
# only compute once this (somehow) costly list
all_method_id_list = prop_holder.getAccessorMethodIdList() + \
prop_holder.getWorkflowMethodIdList() + \
prop_holder.getClassMethodIdList(klass)
# XXX This part is (more or less...) a copy and paste
# We need to run this part twice in order to handle interactions of interactions
# ex. an interaction workflow creates a workflow method which matches
......@@ -716,7 +717,7 @@ def initializePortalTypeDynamicWorkflowMethods(self, klass, ptype, prop_holder,
if wildcard_interaction_method_id_match(imethod_id):
# Interactions workflows can use regexp based wildcard methods
method_id_matcher = re.compile(imethod_id) # XXX What happens if exception ?
# XXX - class stuff is missing here
# XXX - class stuff is missing here
method_id_list = filter(method_id_matcher.match, all_method_id_list)
else:
# Single method
......
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