Index: /WAeUP_SRP/trunk/PatchCatalogToolXMLAdapter.py
===================================================================
--- /WAeUP_SRP/trunk/PatchCatalogToolXMLAdapter.py	(revision 1935)
+++ /WAeUP_SRP/trunk/PatchCatalogToolXMLAdapter.py	(revision 1936)
@@ -8,12 +8,10 @@
     """
     na = node.attributes.items()
-    not_found = False
+    something_changed = False
     new_indexes = []
     new_columns = []
     meta_type = na[0][1]
     name = na[1][1]
-    print name,meta_type,len(self.context())        
     if self.environ.shouldPurge():
-        #import pdb;pdb.set_trace()
         self._purgeProperties()
         self._purgeObjects()
@@ -23,10 +21,8 @@
     for col in self._extractColumns()._get_childNodes():
         columns.append(col.attributes.items()[0][1])
-    #print "cols: ",columns
     inds = {}
     for ind in self._extractIndexes()._get_childNodes():
         inds[ind.attributes.items()[1][1]] = ind.attributes.items()[0][1]
-        #print ind.attributes.items()
-    if meta_type in ("WAeUP Table") and name != "portal_catalog_real":
+    if meta_type in ('CMF Catalog',"WAeUP Table"):
         for ch in node._get_childNodes():
             if ch.nodeName in ('index',):
@@ -37,5 +33,5 @@
                     continue
                 new_indexes.append(iname)
-                not_found = True
+                something_changed = True
             elif ch.nodeName in ('column',):
                 cha = ch.attributes.items()
@@ -44,8 +40,8 @@
                     continue
                 new_columns.append(iname)
-                not_found = True
+                something_changed = True
             else:
                 continue
-    if not_found :
+    if something_changed :
         self._logger.info("Catalog tool %s cleared."  % na[1][1])
         self._logger.info("%s modified." % na[1][1])
@@ -57,5 +53,5 @@
         #self._refreshCatalog()
 
-    self._logger.info("Catalog tooool %s imported."  % na[1][1])
+    self._logger.info("Catalog tool %s imported."  % na[1][1])
     
 from Products.CPSCore.exportimport.catalog import CatalogToolXMLAdapter
