From 20ed0d006d6ea4db79dbc905c6e5d202ec160f32 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 27 Dec 2007 08:42:40 +0000 Subject: [PATCH] "owner" column must not be None anymore if owner do not have view permission, but '' (empty string). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18527 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Catalog/tests/testERP5Catalog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py index 451b428600..452e63c3f4 100644 --- a/product/ERP5Catalog/tests/testERP5Catalog.py +++ b/product/ERP5Catalog/tests/testERP5Catalog.py @@ -1899,7 +1899,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): get_transaction().commit() self.tic() result = sql_connection.manage_test(sql % obj.getUid()) - self.assertSameSet([None], [x.owner for x in result]) + self.assertSameSet([''], [x.owner for x in result]) # Check that Owner is catalogued when he can view the object obj = folder.newContent(portal_type='Organisation') @@ -1916,7 +1916,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): get_transaction().commit() self.tic() result = sql_connection.manage_test(sql % obj.getUid()) - self.assertSameSet([None], [x.owner for x in result]) + self.assertSameSet([''], [x.owner for x in result]) # Check that Owner is not catalogued when he can't view the # object and when the portal type does not acquire the local roles. @@ -1933,7 +1933,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): get_transaction().commit() self.tic() result = sql_connection.manage_test(sql % sub_obj.getUid()) - self.assertSameSet([None], [x.owner for x in result]) + self.assertSameSet([''], [x.owner for x in result]) # Check that Owner is catalogued when he can view the # object and when the portal type does not acquire the local roles. @@ -1985,7 +1985,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor): get_transaction().commit() self.tic() result = sql_connection.manage_test(sql % sub_obj.getUid()) - self.assertSameSet([None], [x.owner for x in result]) + self.assertSameSet([''], [x.owner for x in result]) # Check that Owner is catalogued when he can view the # object and when the portal type acquires the local roles. -- 2.30.9