Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
3e470a3a
Commit
3e470a3a
authored
Mar 05, 2012
by
Giorgos Verigakis
Browse files
Add missing arg strings
parent
61b9822f
Changes
4
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/management/commands/activateuser.py
View file @
3e470a3a
...
...
@@ -40,7 +40,7 @@ from ._common import get_user
class
Command
(
BaseCommand
):
args
=
"<user
id
or email> [user
id
or email] ..."
args
=
"<user
ID
or email> [user
ID
or email] ..."
help
=
"Activates one or more users"
@
transaction
.
commit_manually
...
...
snf-astakos-app/astakos/im/management/commands/modifyuser.py
View file @
3e470a3a
...
...
@@ -39,7 +39,7 @@ from ._common import get_user
class
Command
(
BaseCommand
):
args
=
"<user
_id
or email>"
args
=
"<user
ID
or email>"
help
=
"Modify a user's attributes"
option_list
=
BaseCommand
.
option_list
+
(
...
...
@@ -80,7 +80,7 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
options
):
if
len
(
args
)
!=
1
:
raise
CommandError
(
"Please provide a user
_id
or email"
)
raise
CommandError
(
"Please provide a user
ID
or email"
)
user
=
get_user
(
args
[
0
])
if
not
user
:
...
...
snf-astakos-app/astakos/im/management/commands/showinvitation.py
View file @
3e470a3a
...
...
@@ -39,6 +39,7 @@ from ._common import format_bool, format_date
class
Command
(
BaseCommand
):
args
=
"<invitation ID>"
help
=
"Show invitation info"
def
handle
(
self
,
*
args
,
**
options
):
...
...
snf-astakos-app/astakos/im/management/commands/showuser.py
View file @
3e470a3a
...
...
@@ -39,11 +39,12 @@ from ._common import format_bool, format_date
class
Command
(
BaseCommand
):
args
=
"<user ID or email>"
help
=
"Show user info"
def
handle
(
self
,
*
args
,
**
options
):
if
len
(
args
)
!=
1
:
raise
CommandError
(
"Please provide a user
_id
or email"
)
raise
CommandError
(
"Please provide a user
ID
or email"
)
email_or_id
=
args
[
0
]
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment