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

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

src/r/e/RestAuth-0.6.4/RestAuth/Groups/views.py   RestAuth(Download)
        user = user_backend.get(username=username)
 
        group_backend.add_user(group=group, user=user)
 
        self.log.info('Add user "%s"', username, extra=largs)

src/r/e/RestAuth-0.6.4/RestAuth/bin/restauth-import.py   RestAuth(Download)
        for username in data.get('users', []):
            user = user_backend.get(username=username)
            group_backend.add_user(group=group, user=user)
 
        if 'subgroups' in data:

src/r/e/RestAuth-0.6.4/RestAuth/bin/restauth-group.py   RestAuth(Download)
    elif args.action == 'add-user':
        group = get_group(parser, args.group, args.service)
        group_backend.add_user(group, args.user)
    elif args.action == 'add-group':
        group = get_group(parser, args.group, args.service)