diff options
author | Kostas Karmas <konskarm@gmail.com> | 2020-10-13 17:30:29 +0300 |
---|---|---|
committer | Kostas Karmas <konskarm@gmail.com> | 2020-10-13 17:30:29 +0300 |
commit | ceda3e70bd13e38771e87ee28714507b28293b51 (patch) | |
tree | 90bab877b8e10fba70e6498e43331c33dfb862bc /plugins/SliceInfoPlugin | |
parent | 602e09e8af92d36b80892a3066757426acf5bd11 (diff) |
Include organization id and type of enterprise plan in slice data
CURA-7717
Diffstat (limited to 'plugins/SliceInfoPlugin')
-rwxr-xr-x | plugins/SliceInfoPlugin/SliceInfo.py | 5 | ||||
-rw-r--r-- | plugins/SliceInfoPlugin/example_data.html | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py index 284389064c..4957f2f1d3 100755 --- a/plugins/SliceInfoPlugin/SliceInfo.py +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Ultimaker B.V. +# Copyright (c) 2020 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import json @@ -116,6 +116,7 @@ class SliceInfo(QObject, Extension): machine_manager = self._application.getMachineManager() print_information = self._application.getPrintInformation() + user_profile = self._application.getCuraAPI().account.userProfile global_stack = machine_manager.activeMachine @@ -124,6 +125,8 @@ class SliceInfo(QObject, Extension): data["schema_version"] = 0 data["cura_version"] = self._application.getVersion() data["cura_build_type"] = ApplicationMetadata.CuraBuildType + data["enterprise_plan"] = user_profile.get("enterprise_plan", "") if user_profile else "" + data["organization_id"] = user_profile.get("organization_id", "") if user_profile else "" active_mode = self._application.getPreferences().getValue("cura/active_mode") if active_mode == 0: diff --git a/plugins/SliceInfoPlugin/example_data.html b/plugins/SliceInfoPlugin/example_data.html index 103eb55a6a..5dd63b4c9c 100644 --- a/plugins/SliceInfoPlugin/example_data.html +++ b/plugins/SliceInfoPlugin/example_data.html @@ -6,7 +6,9 @@ <b>Machine Type:</b> Ultimaker S5<br/> <b>Intent Profile:</b> Default<br/> <b>Quality Profile:</b> Fast<br/> - <b>Using Custom Settings:</b> No + <b>Using Custom Settings:</b> No<br/> + <b>Enterprise Plan:</b> Essentials<br/> + <b>Organization ID:</b> Ultimaker B.V. <h3>Extruder 1:</h3> <ul> |