From 62ac6a1a868af37ed2c25bb5de37938762f2c724 Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Thu, 8 Dec 2005 08:46:14 +0000 Subject: [PATCH] When user.getGroups() returns a tuple, we can't append(). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4548 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Catalog/CatalogTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index 770df8b223..3f66d80825 100755 --- a/product/ERP5Catalog/CatalogTool.py +++ b/product/ERP5Catalog/CatalogTool.py @@ -247,7 +247,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): # deal with groups getGroups = getattr(user, 'getGroups', None) if getGroups is not None: - groups = user.getGroups() + groups = list(user.getGroups()) groups.append('role:Anonymous') if 'Authenticated' in result: groups.append('role:Authenticated') -- 2.30.9