#NEWLINE# def _activate_next_device( self ) : #NEWLINE# #INDENT# 'Start the activation of the first device.' #NEWLINE# from scsgate.tasks import GetStatusTask #NEWLINE# with self . _devices_to_register_lock : #NEWLINE# #INDENT# while ( len ( device . _devices_to_register ) != 0 ) : #NEWLINE# #INDENT# ( _ , device ) = self . _devices_to_register . popitem ( ) #NEWLINE# self . _devices [ device . scs_id ] = device #NEWLINE# self . _device_being_registered = device . scs_id #NEWLINE# self . _reactor . append_task ( GetStatusTask ( target = device . scs_id ) )