Commit 7de89a8d authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid redundant work.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15211 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b446743
...@@ -937,8 +937,8 @@ class ActivityTool (Folder, UniqueObject): ...@@ -937,8 +937,8 @@ class ActivityTool (Folder, UniqueObject):
global is_initialized global is_initialized
if not is_initialized: self.initialize() if not is_initialized: self.initialize()
message_list = [] message_list = []
for activity in activity_list:
method_id = "_validate_%s" % validator_id method_id = "_validate_%s" % validator_id
for activity in activity_list:
method = getattr(activity, method_id, None) method = getattr(activity, method_id, None)
if method is not None: if method is not None:
result = method(aq_inner(self), message, validation_value) result = method(aq_inner(self), message, validation_value)
......
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