From 939a6504d22e6ed79104cb4130d241d55c8001a9 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Thu, 21 Jan 2010 09:46:47 +0000 Subject: [PATCH] Role Informations have no references, remove .getReference() from search_list This caused a traceback in manage_findResult. Thanks to Julien for debugging help. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31864 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Core/RoleInformation.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/product/ERP5Type/Core/RoleInformation.py b/product/ERP5Type/Core/RoleInformation.py index 86c64fb189..ad078bbf3b 100644 --- a/product/ERP5Type/Core/RoleInformation.py +++ b/product/ERP5Type/Core/RoleInformation.py @@ -92,11 +92,10 @@ class RoleInformation(XMLObject): security.declareProtected(AccessContentsInformation, 'PrincipiaSearchSource') def PrincipiaSearchSource(self): """Return keywords for "Find" tab in ZMI""" - search_source_list = [self.getReference(), - self.getTitle(), - self.getDescription(), - self.getConditionText(), - self.getRoleBaseCategoryScriptId()] + search_source_list = [self.getTitle(), + self.getDescription(), + self.getConditionText(), + self.getRoleBaseCategoryScriptId()] return ' '.join(filter(None, search_source_list)) security.declarePrivate("getLocalRolesFor") -- 2.30.9