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