Commit d231b45f authored by Vincent Pelletier's avatar Vincent Pelletier

Remove use of hasattr. This could cause order validation criterions to be skipped.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17437 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e982004
...@@ -289,7 +289,7 @@ class Queue: ...@@ -289,7 +289,7 @@ class Queue:
key_list.sort() key_list.sort()
for key in key_list: for key in key_list:
method_id = "_validate_%s" % key method_id = "_validate_%s" % key
if hasattr(self, method_id): if getattr(self, method_id, None) is not None:
order_validation_item_list.append((key, message.activity_kw[key])) order_validation_item_list.append((key, message.activity_kw[key]))
if len(order_validation_item_list) == 0: if len(order_validation_item_list) == 0:
# When no order validation argument is specified, skip the computation # When no order validation argument is specified, skip the computation
......
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