add export method to value in api

This commit is contained in:
Emmanuel Garette 2018-04-04 16:47:28 +02:00
parent 13ec51f468
commit 19b6ad6082
2 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,7 @@ from .setting import owners, undefined
allfuncs = ['MetaConfig', allfuncs = ['MetaConfig',
'GroupConfig', 'GroupConfig',
'Config' 'Config',
'getapi', 'getapi',
'APIError', 'APIError',
'undefined'] 'undefined']

View File

@ -651,6 +651,9 @@ class TiramisuContextValue(TiramisuContext):
path): path):
self.config_bag.config.reset(path, self.config_bag) 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): class TiramisuContextOwner(TiramisuContext):
@count @count