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/c/o/commcare-hq-HEAD/corehq/apps/hqadmin/management/commands/cchq_prbac_bootstrap.py   commcare-hq(Download)
 
        if dry_run:
            grants = Grant.objects.filter(from_role__slug=grantee_slug,
                                          to_role__slug=priv_slug)
            if not grants:
    def remove_grant(self, grantee_slug, priv_slug, dry_run=False):
        grants = Grant.objects.filter(from_role__slug=grantee_slug,
                                      to_role__slug=priv_slug)
        if dry_run:
            if grants: