Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/d/m/dm.zopepatches.zclasses-0.1.1/dm/zopepatches/zclasses/__init__.py   dm.zopepatches.zclasses(Download)
 
# sad that I need to copy this monster
from App.Product import doInstall, ihasattr
 
def initializeProduct(productp, name, home, app):
    old=None
    try:
        if ihasattr(products,name):
            old=getattr(products, name)
            if ihasattr(old,'version') and old.version==fver: