Commit e5121bab authored by Fabien Morin's avatar Fabien Morin

use the same properties in the error message than in the query (and start_date...

use the same properties in the error message than in the query (and start_date don't exist on request_eform)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28148 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4652a83e
......@@ -114,14 +114,14 @@ if len(person_list) >1 :\n
raise ValidationFailed, "Error : There is more than one person with the "\\\n
" title \'%s\', birth date \'%s\' and birthplace \'%s\'" % (\n
request_eform.getTitle(),\n
request_eform.getStartDate(),\n
request_eform.getDefaultBirthplaceAddressCity())\n
request_eform.getOwnerBirthday(),\n
request_eform.getOwnerBirthplace())\n
elif len(person_list) == 0:\n
raise ValidationFailed, "Error : There is nobody with the "\\\n
" title \'%s\', birth date \'%s\' and birthplace \'%s\'" % (\n
request_eform.getTitle(),\n
request_eform.getStartDate(),\n
request_eform.getDefaultBirthplaceAddressCity())\n
request_eform.getOwnerBirthday(),\n
request_eform.getOwnerBirthplace())\n
\n
else:\n
# Modify person based on properties filled in P2\n
......
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