rendered paste bodyfrom zLOG import LOG, DEBUGfrom Globals import InitializeClassfrom Products.CPSInstaller.CPSInstaller import CPSInstallerdef wrap(f): def setupProduct(self, product): if product != 'CPSCalendar': return f(self, product) else: LOG('XXX PatchCPSInstaller', DEBUG, 'wrapper skipped CPSCalendar') return setupProductCPSInstaller.setupProduct = wrap(CPSInstaller.setupProduct)InitializeClass(CPSInstaller)LOG('XXX PatchCPSInstaller', DEBUG, 'wrapper around CPSInstaller.setupProduct installed')