From f50054022d6b2d86395105b022f631f3a6cab1ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 31 Mar 2009 10:33:56 +0000
Subject: [PATCH] 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
---
 .../erp5_base/ERP5Site_getAuthenticatedMemberPersonValue.xml   | 3 ++-
 bt5/erp5_base/bt/revision                                      | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

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 f33a87579e..279ad34450 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
@@ -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>
diff --git a/bt5/erp5_base/bt/revision b/bt5/erp5_base/bt/revision
index 4c38412cc7..ccd47f3c25 100644
--- a/bt5/erp5_base/bt/revision
+++ b/bt5/erp5_base/bt/revision
@@ -1 +1 @@
-559
\ No newline at end of file
+565
\ No newline at end of file
-- 
2.30.9