#NEWLINE# def list_users( self ) : #NEWLINE# #INDENT# '\n        TODO: add docstring\n        => [[name:str,organization:str,[user:str]]\n        ' #NEWLINE# with self . get ( '/v3/user/list' ) as res : #NEWLINE# #INDENT# ( code , body ) = ( res . status , res . read ( ) ) #NEWLINE# if ( code != 200 ) : #NEWLINE# #INDENT# self . raise_error ( 'List users failed' , res , body ) #NEWLINE# #UNINDENT# js = self . checked_json ( body , [ 'users' ] ) #NEWLINE# def user( roleinfo ) : #NEWLINE# #INDENT# name = roleinfo [ 'name' ] #NEWLINE# email = roleinfo [ 'email' ] #NEWLINE# return ( name , None , None , email ) #NEWLINE# #UNINDENT# return [ user ( roleinfo ) for roleinfo in js [ 'users' ] ]