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

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

src/p/l/plone.app.blob-HEAD/src/plone/app/blob/tests/test_replacements.py   plone.app.blob(Download)
def permissionsFor(name, product):
    from Products import meta_types
    for mt in meta_types:
        if mt['product'] == product and name in mt['name']:
            yield mt['permission']

src/a/r/archetypes.configure-0.2/archetypes/configure/tests/test_zcml.py   archetypes.configure(Download)
        install_products(module)
 
        from Products import meta_types
 
        for fti in meta_types:

src/p/l/plone.app.blob-1.5.10/src/plone/app/blob/tests/test_replacements.py   plone.app.blob(Download)
def permissionsFor(name, product):
    from Products import meta_types
    for mt in meta_types:
        if mt['product'] == product and name in mt['name']:
            yield mt['permission']