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

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

src/r/e/RestAuth-0.6.4/RestAuth/Groups/views.py   RestAuth(Download)
            return HttpResponseForbidden()
 
        group = group_backend.get(service=request.user, name=name)
        group_backend.remove(group=group)
        self.log.info("Deleted group", extra=largs)
 
        # If GroupNotFound: 404 Not Found
        group = group_backend.get(service=request.user, name=name)
 
        users = group_backend.members(group=group)
 
        # If GroupNotFound: 404 Not Found
        group = group_backend.get(service=request.user, name=name)
 
        # If UserNotFound: 404 Not Found
 
        # If GroupNotFound: 404 Not Found
        group = group_backend.get(service=request.user, name=name)
 
        # If UserNotFound: 404 Not Found
 
        # If GroupNotFound: 404 Not Found
        group = group_backend.get(service=request.user, name=name)
 
        # If UserNotFound: 404 Not Found

src/r/e/RestAuth-0.6.4/RestAuth/bin/restauth-import.py   RestAuth(Download)
            else:
                print("* %s: Already exists, adding memberships." % name)
                group = group_backend.get(service=service, name=name)
 
        for username in data.get('users', []):
                service = Service.objects.get(username=service)
 
            subgroup = group_backend.get(name=name, service=service)
            group_backend.add_subgroup(group=group, subgroup=subgroup)
 

src/r/e/RestAuth-0.6.4/RestAuth/Groups/cli/helpers.py   RestAuth(Download)
def get_group(parser, name, service):
    try:
        return group_backend.get(name=name, service=service)
    except GroupNotFound:
        parser.error('%s at service %s: Group does not exist.' % (name, service))