summaryrefslogtreecommitdiff
path: root/python/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/settings.py')
-rw-r--r--python/settings.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/settings.py b/python/settings.py
index a83898af..d09a001a 100644
--- a/python/settings.py
+++ b/python/settings.py
@@ -200,6 +200,16 @@ class Settings(object):
def serialize_schema(self):
return core.BNSettingsSerializeSchema(self.handle)
+ def deserialize_settings(self, contents, view = None, scope = SettingsScope.SettingsAutoScope):
+ if view is not None:
+ view = view.handle
+ return core.BNDeserializeSettings(self.handle, contents, view, scope)
+
+ def serialize_settings(self, view = None, scope = SettingsScope.SettingsAutoScope):
+ if view is not None:
+ view = view.handle
+ return core.BNSerializeSettings(self.handle, view, scope)
+
def copy_values_from(self, source, scope = SettingsScope.SettingsAutoScope):
return core.BNSettingsCopyValuesFrom(self.handle, source.handle, scope)