#NEWLINE# def __init__( self , client , data = None ) : #NEWLINE# #INDENT# super ( Location , self ) . __init__ ( ) #NEWLINE# self . client = data #NEWLINE# self . _gateways = [ ] #NEWLINE# self . gateways = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( data is not None ) : #NEWLINE# #INDENT# self . __dict__ . update ( data [ 'locationInfo' ] ) #NEWLINE# for gw_data in data [ 'gateways' ] : #NEWLINE# #INDENT# gateway = Gateway ( client , self , gw_data ) #NEWLINE# self . _gateways . append ( gateway ) #NEWLINE# self . gateways [ gateway . gatewayId ] = gateway #NEWLINE# #UNINDENT# self . status ( )