Skip to content

Commit c18af19

Browse files
committed
added workbench export
1 parent fa06900 commit c18af19

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

qgist/workbench/dtype_fsm.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,15 @@ def save_workbench(self, name, mainwindow):
202202

203203
self._update_config()
204204

205+
def export_workbench(self, name):
206+
207+
if not isinstance(name, str):
208+
raise QgistTypeError(translate('global', '"name" must be str. (dtype_fsm export)'))
209+
if name not in self._workbench_dict.keys():
210+
raise QgistValueError(translate('global', '"name" is not a known workbench. (dtype_fsm export)'))
211+
212+
return self._workbench_dict[name].as_dict()
213+
205214
def _update_config(self):
206215

207216
if self._config is None:

0 commit comments

Comments
 (0)