Revision 3e470a3a
b/snf-astakos-app/astakos/im/management/commands/activateuser.py | ||
---|---|---|
40 | 40 |
|
41 | 41 |
|
42 | 42 |
class Command(BaseCommand): |
43 |
args = "<user id or email> [user id or email] ..."
|
|
43 |
args = "<user ID or email> [user ID or email] ..."
|
|
44 | 44 |
help = "Activates one or more users" |
45 | 45 |
|
46 | 46 |
@transaction.commit_manually |
b/snf-astakos-app/astakos/im/management/commands/modifyuser.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
|
41 | 41 |
class Command(BaseCommand): |
42 |
args = "<user_id or email>"
|
|
42 |
args = "<user ID or email>"
|
|
43 | 43 |
help = "Modify a user's attributes" |
44 | 44 |
|
45 | 45 |
option_list = BaseCommand.option_list + ( |
... | ... | |
80 | 80 |
|
81 | 81 |
def handle(self, *args, **options): |
82 | 82 |
if len(args) != 1: |
83 |
raise CommandError("Please provide a user_id or email")
|
|
83 |
raise CommandError("Please provide a user ID or email")
|
|
84 | 84 |
|
85 | 85 |
user = get_user(args[0]) |
86 | 86 |
if not user: |
b/snf-astakos-app/astakos/im/management/commands/showinvitation.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
|
41 | 41 |
class Command(BaseCommand): |
42 |
args = "<invitation ID>" |
|
42 | 43 |
help = "Show invitation info" |
43 | 44 |
|
44 | 45 |
def handle(self, *args, **options): |
b/snf-astakos-app/astakos/im/management/commands/showuser.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
|
41 | 41 |
class Command(BaseCommand): |
42 |
args = "<user ID or email>" |
|
42 | 43 |
help = "Show user info" |
43 | 44 |
|
44 | 45 |
def handle(self, *args, **options): |
45 | 46 |
if len(args) != 1: |
46 |
raise CommandError("Please provide a user_id or email")
|
|
47 |
raise CommandError("Please provide a user ID or email")
|
|
47 | 48 |
|
48 | 49 |
email_or_id = args[0] |
49 | 50 |
try: |
Also available in: Unified diff