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

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

src/d/m/dm.zopepatches.zclasses-0.1.1/dm/zopepatches/zclasses/__init__.py   dm.zopepatches.zclasses(Download)
def manage_addProduct(self, id, title, REQUEST=None):
        """ Create a product.
        """
        i=Product(id, title)
        self._setObject(id,i)
ProductFolder.manage_addProduct = manage_addProduct
 
from App.Product import Product
from App.Permission import PermissionManager
 
    except:
        f=fver and (" (%s)" % fver)
        product=Product(name, 'Installed product %s%s' % (name,f))
    else:
        meta=cPickle.Unpickler(f).load()

src/d/m/dm.zopepatches.zclasses-0.1.1/dm/zopepatches/zclasses/Factory.py   dm.zopepatches.zclasses(Download)
    def manage_afterAdd(self, item, container):
        from App.Product import Product  # local to avoid circular import
        if hasattr(self, 'aq_parent'):
            container=self.aq_parent
        elif item is not self:
    def manage_beforeDelete(self, item, container):
        from App.Product import Product  # local to avoid circular import
        if hasattr(self, 'aq_parent'):
            container=self.aq_parent
        elif item is not self: