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

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

src/a/c/AccessControl-3.0.8/src/AccessControl/rolemanager.py   AccessControl(Download)
                continue
            if name in permissions:
                p.setRoles(list(roles))
            else:
                p.setRoles(tuple(roles))
                else:
                    roles=tuple(roles)
                p.setRoles(roles)
                return
 

src/e/r/erp5-HEAD/product/ERP5Type/CopySupport.py   erp5(Download)
      p = Permission(name,value,context)
      old_role_list = p.getRoles(default=[])
      p.setRoles(user_role_list)
      result = method(*method_argv, **method_kw)
      p.setRoles(old_role_list)

src/p/r/Products.Carousel-2.2.1/Products/Carousel/utils.py   Products.Carousel(Download)
            if role not in roles:
                roles.append(role)
            p.setRoles(tuple(roles))
 
def removePermissionsForRole(context, role, wanted_permissions):
            if role in roles:
                roles.remove(role)
            p.setRoles(tuple(roles))
 

src/p/r/Products.contentmigration-2.1.8/Products/contentmigration/basemigrator/migrator.py   Products.contentmigration(Download)
            new_values = newmap.get(key, ())
            new_p = Permission(key, new_values, self.new)
            new_p.setRoles(old_roles)
 
    def migrate_withmap(self):

src/p/r/Products.contentmigration-2.1.8/Products/contentmigration/inplace.py   Products.contentmigration(Download)
            new_values = newmap.get(key, ())
            new_p = Permission(key, new_values, self.new)
            new_p.setRoles(old_roles)
 
    def beforeChange_withmap(self):

src/p/r/Products.DCWorkflow-2.3.0-beta/Products/DCWorkflow/utils.py   Products.DCWorkflow(Download)
    p = Permission(pname, data, ob)
    if p.getRoles() != roles:
        p.setRoles(roles)
        return 1
    return 0

src/c/o/collective.subtractiveworkflow-2.0b1/collective/subtractiveworkflow/workflow.py   collective.subtractiveworkflow(Download)
 
    if p.getRoles() != new_roles:
        p.setRoles(new_roles)
        return True
 

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/utils.py   Products.FileSystemSite(Download)
                    break
            p = Permission(name, data, ob)
            p.setRoles(tuple(cur_roles))
            something_changed = 1
    return something_changed

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/utils.py   Products.CMFCore(Download)
                    break
            p = Permission(name, data, ob)
            p.setRoles(tuple(cur_roles))
            something_changed = 1
    return something_changed

src/z/o/Zope2-2.13.22/src/OFS/role.py   Zope2(Download)
                if not have('a%d' % ip):
                    roles=tuple(roles)
                p.setRoles(roles)
            except:
                fails.append(name)

  1 | 2  Next