From 19b6ad608247073f854d02e43079270928887be6 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 4 Apr 2018 16:47:28 +0200 Subject: [PATCH] add export method to value in api --- tiramisu/__init__.py | 2 +- tiramisu/api.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tiramisu/__init__.py b/tiramisu/__init__.py index 2db531b..e7265b0 100644 --- a/tiramisu/__init__.py +++ b/tiramisu/__init__.py @@ -22,7 +22,7 @@ from .setting import owners, undefined allfuncs = ['MetaConfig', 'GroupConfig', - 'Config' + 'Config', 'getapi', 'APIError', 'undefined'] diff --git a/tiramisu/api.py b/tiramisu/api.py index 672738f..b1c177a 100644 --- a/tiramisu/api.py +++ b/tiramisu/api.py @@ -651,6 +651,9 @@ class TiramisuContextValue(TiramisuContext): path): self.config_bag.config.reset(path, self.config_bag) + def export(self): + return self.config_bag.config.cfgimpl_get_values()._p_.exportation() + class TiramisuContextOwner(TiramisuContext): @count