Commit f5005402 authored by Jérome Perrin's avatar Jérome Perrin

convert user to string explicitly to prevent a catalog warning

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26203 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3e013452
......@@ -61,7 +61,7 @@
if user_name is None:\n
user_name = context.portal_membership.getAuthenticatedMember()\n
found_user_list = context.portal_catalog(portal_type=\'Person\', \n
reference=user_name)\n
reference=str(user_name))\n
found_users = len(found_user_list)\n
if found_users != 1:\n
return None\n
......@@ -107,6 +107,7 @@ return found_user_list[0].getObject()\n
<string>None</string>
<string>_getattr_</string>
<string>context</string>
<string>str</string>
<string>found_user_list</string>
<string>len</string>
<string>found_users</string>
......
559
\ No newline at end of file
565
\ No newline at end of file
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