diff --git a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/ERP5Site_getAuthenticatedMemberPersonValue.xml b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/ERP5Site_getAuthenticatedMemberPersonValue.xml index 7b5adf54ce5ed2356130ea67506b400e92162249..f33a87579ebf4f0e94eb0e24fc2fad125550720a 100644 --- a/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/ERP5Site_getAuthenticatedMemberPersonValue.xml +++ b/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/ERP5Site_getAuthenticatedMemberPersonValue.xml @@ -64,8 +64,7 @@ found_user_list = context.portal_catalog(portal_type=\'Person\', \n reference=user_name)\n found_users = len(found_user_list)\n if found_users != 1:\n - # in an ERP5 system there can exists only one unique username\n - raise ValueError, "Found %s users for username \'%s\'" %(found_users, user_name)\n + return None\n \n return found_user_list[0].getObject()\n </string> </value> @@ -111,7 +110,6 @@ return found_user_list[0].getObject()\n <string>found_user_list</string> <string>len</string> <string>found_users</string> - <string>ValueError</string> <string>_getitem_</string> </tuple> </value> diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision index 88bc40f5cc26266067d23340aac333d51dd74164..54a584dece54566d69277ced81fff9d12cbd7243 100644 --- a/bt5/erp5_base/bt/revision +++ b/bt5/erp5_base/bt/revision @@ -1 +1 @@ -513 \ No newline at end of file +514 \ No newline at end of file