Doc polish and such

This commit is contained in:
Matt Wright
2012-03-28 11:44:48 -04:00
parent 201ee5b708
commit 245914cc9a
4 changed files with 45 additions and 2 deletions
+13
View File
@@ -46,6 +46,19 @@ class CreateUserCommand(Command):
pprint(kwargs)
class CreateRoleCommand(Command):
"""Create a role"""
option_list = (
Option('-n', '--name', dest='name', default=None),
Option('-d', '--desc', dest='description', default=None),
)
def run(self, **kwargs):
role = user_datastore.create_role(**kwargs)
print 'Role "%(name)s" created successfully.' % kwargs
class _RoleCommand(Command):
option_list = (
Option('-u', '--user', dest='user_identifier'),