(self, lock_start_rec, lock_stop_rec)
return lock_start_rec, lock_stop_rec
Get record lock limits.
Get record lock limits.
Get record lock limits .
def _get_lock_limits(self, lock_start_rec, lock_stop_rec):
        """Get record lock limits."""
        if lock_start_rec is None and lock_stop_rec is None:
            return None, None
        if lock_start_rec is None:
            lock_start_rec = 1
        else:
            lock_start_rec = round(values.to_single(lock_start_rec).to_value())
        if lock_stop_rec is None:
            lock_stop_rec = lock_start_rec
        else:
            lock_stop_rec = round(values.to_single(lock_stop_rec).to_value())
        if lock_start_rec < 1 or lock_start_rec > 2**25-2 or lock_stop_rec < 1 or lock_stop_rec > 2**25-2:
            raise error.BASICError(error.BAD_RECORD_NUMBER)
        return lock_start_rec, lock_stop_rec
def _get_lock_limits ( self , lock_start_rec , lock_stop_rec ) : if lock_start_rec is None and lock_stop_rec is None : return None , None if lock_start_rec is None : lock_start_rec = 1 else : lock_start_rec = round ( values . to_single ( lock_start_rec ) . to_value ( ) ) if lock_stop_rec is None : lock_stop_rec = lock_start_rec else : lock_stop_rec = round ( values . to_single ( lock_stop_rec ) . to_value ( ) ) if lock_start_rec < 1 or lock_start_rec > 2 ** 25 - 2 or lock_stop_rec < 1 or lock_stop_rec > 2 ** 25 - 2 : raise error . BASICError ( error . BAD_RECORD_NUMBER ) return lock_start_rec , lock_stop_rec