#NEWLINE# def get_capabilities( self , api_root ) : #NEWLINE# #INDENT# 'Retrieve Capabilities from the server and return them.' #NEWLINE# if ( 'capabilities' in api_root ) : #NEWLINE# #INDENT# return Capabilities ( api_root . capabilities ) #NEWLINE# #UNINDENT# info = api_root . get_info ( ) #NEWLINE# if ( 'capabilities' in info ) : #NEWLINE# #INDENT# return Capabilities ( info . capabilities ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return Capabilities ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )