copy/deepcopy groupconfig
This commit is contained in:
parent
552cd3740d
commit
5498a12b2b
|
@ -1303,6 +1303,26 @@ class _TiramisuContextGroupConfig(TiramisuContext):
|
||||||
config = self._config_bag.context
|
config = self._config_bag.context
|
||||||
for spath in spaths:
|
for spath in spaths:
|
||||||
config = config.getconfig(spath)
|
config = config.getconfig(spath)
|
||||||
|
|
||||||
|
def copy(self,
|
||||||
|
session_id=None,
|
||||||
|
persistent=False,
|
||||||
|
storage=None):
|
||||||
|
return Config(self._config_bag.context.duplicate(session_id,
|
||||||
|
persistent=persistent,
|
||||||
|
storage=storage))
|
||||||
|
|
||||||
|
def deepcopy(self,
|
||||||
|
session_id=None,
|
||||||
|
persistent=False,
|
||||||
|
storage=None,
|
||||||
|
metaconfig_prefix=None):
|
||||||
|
return Config(self._config_bag.context.duplicate(session_id,
|
||||||
|
persistent=persistent,
|
||||||
|
storage=storage,
|
||||||
|
metaconfig_prefix=metaconfig_prefix,
|
||||||
|
deep=True))
|
||||||
|
|
||||||
return Config(config)
|
return Config(config)
|
||||||
|
|
||||||
def path(self):
|
def path(self):
|
||||||
|
|
Loading…
Reference in New Issue