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

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)
Manage a collection of Products

src/d/m/dm.zopepatches.zclasses-0.1.1/dm/zopepatches/zclasses/__init__.py   dm.zopepatches.zclasses(Download)
ZClasses = modules[__name__]
 
from App.Product import ProductFolder
ProductFolder.all_meta_types = {'name': 'Product', 'action': 'manage_addProductForm',
                    'permission': manage_zclasses},

src/z/o/Zope2-2.13.22/src/OFS/Application.py   Zope2(Download)
        # b/c: Ensure that a ProductFolder exists.
        if not hasattr(aq_base(app.Control_Panel), 'Products'):
            app.Control_Panel.Products=App.Product.ProductFolder()
            self.commit('Added Control_Panel.Products')
 

src/z/o/Zope2-2.13.22/src/App/tests/test_ApplicationManager.py   Zope2(Download)
    def test_ctor_initializes_Products(self):
        from App.Product import ProductFolder
        am = self._makeOne()
        self.assertTrue(isinstance(am.Products, ProductFolder))