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/r/e/RestAuth-0.6.4/RestAuth/Groups/views.py   RestAuth(Download)
        user = user_backend.get(username=subname)
 
        group_backend.rm_user(group=group, user=user)
        self.log.info('Remove user from group', extra=largs)
        return HttpResponseNoContent()

src/r/e/RestAuth-0.6.4/RestAuth/bin/restauth-group.py   RestAuth(Download)
        group = get_group(parser, args.group, args.service)
        try:
            group_backend.rm_user(group, args.user)
        except UserNotFound:
            parser.error('User "%s" not member of group "%s".' % (args.user.username, group.name))