diff --git a/product/ZSQLCatalog/ZSQLCatalog.py b/product/ZSQLCatalog/ZSQLCatalog.py index eb9a2221a65f74e3813f9ceef27557d4714d836a..b45e44b6db17a5be8f1b3865637e41b5e6464638 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