All pastes #33767 Raw Edit

christi

public python v1 · immutable
#33767 ·published 2005-12-15 13:40 UTC
rendered paste body
from 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')