remotelogin/devices/managers/services.py
def remove_service(self, service):
        """ removes a service from this device

        :param Service service: a string or service object

        """
        try:
            if not service.already_assigned_to_device() or not hasattr(self, service.name_assigned_on_device):
                log.error('This Service ({}) has not been assigned to any device'.format(service.name))
                return

            getattr(self, service.name_assigned_on_device).close()
            delattr(self, service.name_assigned_on_device)
            service.remove_from_device()
            fdutils.lists.del_from_list(self._services, [service.name_assigned_on_device])
            self.remove_capability(service.send)
        except:
            pass
 removes a service from this device

        :param Service service: a string or service object

        
removes a service from this device
removes a service from this device
def remove_service(self, service):
        try:
            if not service.already_assigned_to_device() or not hasattr(self, service.name_assigned_on_device):
                log.error('This Service ({}) has not been assigned to any device'.format(service.name))
                return
            getattr(self, service.name_assigned_on_device).close()
            delattr(self, service.name_assigned_on_device)
            service.remove_from_device()
            fdutils.lists.del_from_list(self._services, [service.name_assigned_on_device])
            self.remove_capability(service.send)
        except:
            pass
def remove_service ( self , service ) : try : if not service . already_assigned_to_device ( ) or not hasattr ( self , service . name_assigned_on_device ) : log . error ( 'This Service ({}) has not been assigned to any device' . format ( service . name ) ) return getattr ( self , service . name_assigned_on_device ) . close ( ) delattr ( self , service . name_assigned_on_device ) service . remove_from_device ( ) fdutils . lists . del_from_list ( self . _services , [ service . name_assigned_on_device ] ) self . remove_capability ( service . send ) except : pass
removes a service from this device
removes a service from this device
""" removes a service from this device

        :param Service service: a string or service object

        """
self
service
a string or service object
a string or service object