examples/get_role_details.py
def main(spc):
    """
    Gets all Roles from Space. For each, it gets details and prints the
    name of the role and all tasks that are part of that role.
    """
    roles_list = spc.user_management.roles.get()
    for role in roles_list:
        print("\n%s" % role.title)
        tasks = role.tasks.get()
        for t in tasks:
            task_detail = t.get()
            print("\t%s (%s)" % (task_detail.title, task_detail.name))

    Gets all Roles from Space. For each, it gets details and prints the
    name of the role and all tasks that are part of that role.
    
Gets all Roles from Space. For each, it gets details and prints the
name of the role and all tasks that are part of that role.
Gets all Roles from Space . For each it gets details and prints the name of the role and all tasks that are part of that role .
def main(spc):
    roles_list = spc.user_management.roles.get()
    for role in roles_list:
        print("\n%s" % role.title)
        tasks = role.tasks.get()
        for t in tasks:
            task_detail = t.get()
            print("\t%s (%s)" % (task_detail.title, task_detail.name))
def main ( spc ) : roles_list = spc . user_management . roles . get ( ) for role in roles_list : print ( "\n%s" % role . title ) tasks = role . tasks . get ( ) for t in tasks : task_detail = t . get ( ) print ( "\t%s (%s)" % ( task_detail . title , task_detail . name ) )
Gets all Roles from Space.
Gets all Roles from Space .
"""
    Gets all Roles from Space. For each, it gets details and prints the
    name of the role and all tasks that are part of that role.
    """
spc