rtslib/target.py
def _set_enable(self, boolean):
        '''
        Enables or disables the TPG. If the TPG doesn't support the enable
        attribute, do nothing.
        '''
        self._check_self()
        path = "%s/enable" % self.path
        if os.path.isfile(path) and (boolean != self._get_enable()):
            try:
                fwrite(path, str(int(boolean)))
            except IOError as e:
                raise RTSLibError("Cannot change enable state: %s" % e)

        Enables or disables the TPG. If the TPG doesn't support the enable
        attribute, do nothing.
        
Enables or disables the TPG. If the TPG doesn't support the enable
attribute, do nothing.
Enables or disables the TPG . If the TPG doesn ' t support the enable attribute do nothing .
def _set_enable(self, boolean):
        self._check_self()
        path = "%s/enable" % self.path
        if os.path.isfile(path) and (boolean != self._get_enable()):
            try:
                fwrite(path, str(int(boolean)))
            except IOError as e:
                raise RTSLibError("Cannot change enable state: %s" % e)
def _set_enable ( self , boolean ) : self . _check_self ( ) path = "%s/enable" % self . path if os . path . isfile ( path ) and ( boolean != self . _get_enable ( ) ) : try : fwrite ( path , str ( int ( boolean ) ) ) except IOError as e : raise RTSLibError ( "Cannot change enable state: %s" % e )
Enables or disables the TPG.
Enables or disables the TPG .
'''
        Enables or disables the TPG. If the TPG doesn't support the enable
        attribute, do nothing.
        '''
self
boolean