Revision d01e7b22
b/snf-astakos-app/README | ||
---|---|---|
51 | 51 |
|
52 | 52 |
Available as extensions to Django's command-line management utility: |
53 | 53 |
|
54 |
============ ====================== |
|
55 |
Name Description |
|
56 |
============ ====================== |
|
57 |
... |
|
58 |
============ ====================== |
|
59 |
|
|
60 |
|
|
54 |
=============== =========================== |
|
55 |
Name Description |
|
56 |
=============== =========================== |
|
57 |
activateuser Activates one or more users |
|
58 |
createuser Create a user |
|
59 |
inviteuser Invite a user |
|
60 |
listinvitations List invitations |
|
61 |
listusers List users |
|
62 |
modifyuser Modify a user's attributes |
|
63 |
showinvitation Show invitation info |
|
64 |
showuser Show user info |
|
65 |
=============== =========================== |
b/snf-astakos-app/astakos/im/management/commands/createuser.py | ||
---|---|---|
48 | 48 |
|
49 | 49 |
class Command(BaseCommand): |
50 | 50 |
args = "<email> <first name> <last name> <affiliation>" |
51 |
help = "Modify a user's attributes"
|
|
51 |
help = "Create a user"
|
|
52 | 52 |
|
53 | 53 |
option_list = BaseCommand.option_list + ( |
54 | 54 |
make_option('--active', |
b/snf-astakos-app/astakos/im/management/commands/inviteuser.py | ||
---|---|---|
44 | 44 |
|
45 | 45 |
class Command(BaseCommand): |
46 | 46 |
args = "<inviter id or email> <email> <real name>" |
47 |
help = "Activates one or more users"
|
|
47 |
help = "Invite a user"
|
|
48 | 48 |
|
49 | 49 |
def handle(self, *args, **options): |
50 | 50 |
if len(args) != 3: |
b/snf-astakos-app/astakos/im/management/commands/listinvitations.py | ||
---|---|---|
41 | 41 |
|
42 | 42 |
|
43 | 43 |
class Command(BaseCommand): |
44 |
help = "List users"
|
|
44 |
help = "List invitations"
|
|
45 | 45 |
|
46 | 46 |
option_list = BaseCommand.option_list + ( |
47 | 47 |
make_option('-c', |
b/snf-astakos-app/astakos/im/management/commands/showinvitation.py | ||
---|---|---|
39 | 39 |
|
40 | 40 |
|
41 | 41 |
class Command(BaseCommand): |
42 |
help = "Show user info"
|
|
42 |
help = "Show invitation info"
|
|
43 | 43 |
|
44 | 44 |
def handle(self, *args, **options): |
45 | 45 |
if len(args) != 1: |
Also available in: Unified diff