Commit 9f6925f4 authored by Sebastien Robin's avatar Sebastien Robin

added _validate_last_path method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1789 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bed136eb
......@@ -307,6 +307,13 @@ class SQLDict(RAMDict):
return INVALID_ORDER
return VALID
def _validate_last_path(self, activity_tool, message, value):
# We want to run this activity after all others for this specific path
result = activity_tool.SQLDict_validateMessageList(method_id=None, message_uid=None, path=value)
if result[0].uid_count > 1:
return INVALID_ORDER
return VALID
def _validate_after_message_uid(self, activity_tool, message, value):
# Count number of occurances of message_uid
result = activity_tool.SQLDict_validateMessageList(method_id=None, message_uid=value, path=None)
......
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