Changeset 1936


Ignore:
Timestamp:
19 Jun 2007, 09:06:41 (18 years ago)
Author:
joachim
Message:

remove debugging output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/PatchCatalogToolXMLAdapter.py

    r1935 r1936  
    88    """
    99    na = node.attributes.items()
    10     not_found = False
     10    something_changed = False
    1111    new_indexes = []
    1212    new_columns = []
    1313    meta_type = na[0][1]
    1414    name = na[1][1]
    15     print name,meta_type,len(self.context())       
    1615    if self.environ.shouldPurge():
    17         #import pdb;pdb.set_trace()
    1816        self._purgeProperties()
    1917        self._purgeObjects()
     
    2321    for col in self._extractColumns()._get_childNodes():
    2422        columns.append(col.attributes.items()[0][1])
    25     #print "cols: ",columns
    2623    inds = {}
    2724    for ind in self._extractIndexes()._get_childNodes():
    2825        inds[ind.attributes.items()[1][1]] = ind.attributes.items()[0][1]
    29         #print ind.attributes.items()
    30     if meta_type in ("WAeUP Table") and name != "portal_catalog_real":
     26    if meta_type in ('CMF Catalog',"WAeUP Table"):
    3127        for ch in node._get_childNodes():
    3228            if ch.nodeName in ('index',):
     
    3733                    continue
    3834                new_indexes.append(iname)
    39                 not_found = True
     35                something_changed = True
    4036            elif ch.nodeName in ('column',):
    4137                cha = ch.attributes.items()
     
    4440                    continue
    4541                new_columns.append(iname)
    46                 not_found = True
     42                something_changed = True
    4743            else:
    4844                continue
    49     if not_found :
     45    if something_changed :
    5046        self._logger.info("Catalog tool %s cleared."  % na[1][1])
    5147        self._logger.info("%s modified." % na[1][1])
     
    5753        #self._refreshCatalog()
    5854
    59     self._logger.info("Catalog tooool %s imported."  % na[1][1])
     55    self._logger.info("Catalog tool %s imported."  % na[1][1])
    6056   
    6157from Products.CPSCore.exportimport.catalog import CatalogToolXMLAdapter
Note: See TracChangeset for help on using the changeset viewer.