From 46050f9618afffce36701530010cd663c03ce41b Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 16 Jan 2020 11:25:30 +0100 Subject: [PATCH] Use getter instead of protected attribute CURA-6627 --- plugins/3MFWriter/ThreeMFWorkspaceWriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py index 45d9db77f6..08918e1c12 100644 --- a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py +++ b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py @@ -83,7 +83,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter): def _writePluginMetadataToArchive(self, archive): file_name_template = "%s/plugin_metadata.json" - for plugin_id, metadata in Application.getInstance()._workspace_metadata_storage.getAllData().items(): + for plugin_id, metadata in Application.getInstance().getWorkspaceMetadataStorage().getAllData().items(): file_name = file_name_template % plugin_id file_in_archive = zipfile.ZipInfo(file_name) # We have to set the compress type of each file as well (it doesn't keep the type of the entire archive)