Commit 653439f6 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 46345227
...@@ -737,7 +737,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -737,7 +737,7 @@ class ZCatalog(Folder, Persistent, Implicit):
url_list.append(url) url_list.append(url)
goto_current_catalog = 0 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 == default_catalog.id or \
sql_catalog_id is None))): sql_catalog_id is None))):
# check in which archive object must go # check in which archive object must go
...@@ -756,7 +756,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -756,7 +756,7 @@ class ZCatalog(Folder, Persistent, Implicit):
goto_current_catalog = 1 goto_current_catalog = 1
else: else:
goto_current_catalog = 1 goto_current_catalog = 1
if goto_current_catalog == 1: if goto_current_catalog:
try: try:
# wrap object only when sure it will be reindex now # wrap object only when sure it will be reindex now
# thus security uid is also reindex # thus security uid is also reindex
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment