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

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)
Test whether an interface is implemented by the specification

src/c/o/collective.jsonmigrator-HEAD/collective/jsonmigrator/permissions.py   collective.jsonmigrator(Download)
                yield item; continue
 
            if IRoleManager.providedBy(obj):
                for perm, perm_dict in item[permskey].items():
                    try:

src/c/o/collective.jsonmigrator-HEAD/collective/jsonmigrator/local_roles.py   collective.jsonmigrator(Download)
                yield item; continue
 
            if IRoleManager.providedBy(obj):
                for principal, roles in item[roleskey].items():
                    if roles:

src/a/g/ageliaco.rd-0.2.6/ageliaco/rd/content/projet.py   ageliaco.rd(Download)
 
    #Add local roles to a group
    if IRoleManager.providedBy(projet):
        log("adding roles (contributor and Editor) to " + group_id) 
        projet.manage_addLocalRoles(group_id, ['Contributor','Editor'])

src/c/o/collective.securitycleanup-0.3/src/collective/securitycleanup/handler.py   collective.securitycleanup(Download)
def cleanUpAncestorSecurity(obj):
    parent = obj
    while parent is not None:
        if interfaces.IRoleManager.providedBy(parent):
            cleanUpObjSecurity(parent)

src/a/g/ageliaco.rd2-0.8.4/ageliaco/rd2/interface.py   ageliaco.rd2(Download)
def setSupervisor(cycle, event):
    if not cycle.supervisor:
        return
    if IRoleManager.providedBy(cycle):
        cycle.manage_addLocalRoles(cycle.supervisor, ['Reader', 'Contributor', 'Editor'])

Previous  1 | 2