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-0.2/collective/jsonmigrator/blueprint.py   collective.jsonmigrator(Download)
                yield item; continue
 
            if IRoleManager.providedBy(obj):
                for perm, perm_dict in item[permskey].items():
                    try:
                yield item; continue
 
            if IRoleManager.providedBy(obj):
                for principal, roles in item[roleskey].items():
                    if roles:

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

src/c/o/collective.blueprint.usersandgroups-0.1.3/collective/blueprint/usersandgroups/blueprint.py   collective.blueprint.usersandgroups(Download)
                        pass
                    else:
                        if IRoleManager.providedBy(obj):
                            obj.manage_addLocalRoles(item['_username'], item['_local_roles'])
                            obj.reindexObjectSecurity()
                    pass
                else:
                    if IRoleManager.providedBy(obj):
                        obj.manage_addLocalRoles(item['_groupname'], item['_roles'])
                        obj.reindexObjectSecurity()

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

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

src/c/o/collective.jsonmigrator-0.2/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-0.2/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.tracker-0.1.8/ageliaco/tracker/content/tracker.py   ageliaco.tracker(Download)
 
    #Add local roles to a group
    if IRoleManager.providedBy(tracker):
        for member in users_with_the_role:
            log( "adding roles (Reviewer) to " + member)

src/a/g/ageliaco.tracker-0.1.8/ageliaco/tracker/content/issue.py   ageliaco.tracker(Download)
 
    #Add local roles to a group
    if IRoleManager.providedBy(issue):
        for member in users_with_the_role:
            log( "adding roles (Reviewer) to " + member )

src/z/3/z3c.formwidget.query-0.10/src/z3c/formwidget/query/widget.py   z3c.formwidget.query(Download)
                if not value:
                    continue
                if HAS_AC and IRoleManager.providedBy(value):
                    if not checkPermission('zope2.View', value):
                        continue

  1 | 2  Next