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

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

src/a/c/AccessControl-3.0.8/src/AccessControl/rolemanager.py   AccessControl(Download)
            name, value = p[:2]
            p=Permission(name, value, self)
            p.setRole(role_to_manage, name in permissions)
 
    security.declareProtected(change_permissions, 'manage_acquiredPermissions')

src/e/u/Euphorie-6.3.1/src/euphorie/deployment/upgrade/v2.py   Euphorie(Download)
    permission = Permission("Euphorie: Publish a Survey", (), siteroot)
    if "CountryManager" not in permission.getRoles(default=[]):
        permission.setRole("CountryManager", True)
        log.info("Adding publish permission for country managers")