[Erp5-report] r17125 - /erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 23 15:35:00 CEST 2007


Author: jerome
Date: Tue Oct 23 15:35:00 2007
New Revision: 17125

URL: http://svn.erp5.org?rev=17125&view=rev
Log:
test boolean value directly instead of == 0,  == 1

Modified:
    erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py

Modified: erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py?rev=17125&r1=17124&r2=17125&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py (original)
+++ erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py Tue Oct 23 15:35:00 2007
@@ -737,7 +737,7 @@
         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 @@
           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




More information about the Erp5-report mailing list