From 653439f68e94e59302486cd0af6b68294fa91559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 23 Oct 2007 13:35:00 +0000 Subject: [PATCH] test boolean value directly instead of == 0, == 1 git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17125 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/ZSQLCatalog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ZSQLCatalog/ZSQLCatalog.py b/product/ZSQLCatalog/ZSQLCatalog.py index eb9a2221a6..b45e44b6db 100644 --- a/product/ZSQLCatalog/ZSQLCatalog.py +++ b/product/ZSQLCatalog/ZSQLCatalog.py @@ -737,7 +737,7 @@ class ZCatalog(Folder, Persistent, Implicit): url_list.append(url) goto_current_catalog = 0 - if disable_archive == 0 and (archiving or (len(archive_obj_list) > 0 and \ + if (not disable_archive) and (archiving or (len(archive_obj_list) > 0 and \ (sql_catalog_id == default_catalog.id or \ sql_catalog_id is None))): # check in which archive object must go @@ -756,7 +756,7 @@ class ZCatalog(Folder, Persistent, Implicit): goto_current_catalog = 1 else: goto_current_catalog = 1 - if goto_current_catalog == 1: + if goto_current_catalog: try: # wrap object only when sure it will be reindex now # thus security uid is also reindex -- 2.30.9