start added recursive to option.list()
This commit is contained in:
parent
bc4fa9d3d0
commit
4ee9cc82b2
|
@ -788,10 +788,20 @@ class TiramisuContextOption(TiramisuContext):
|
||||||
group_type=None,
|
group_type=None,
|
||||||
recursive=False):
|
recursive=False):
|
||||||
if type == 'optiondescription':
|
if type == 'optiondescription':
|
||||||
|
if recursive:
|
||||||
|
raise APIError(_('not implemented yet'))
|
||||||
|
else:
|
||||||
return self.config_bag.config.iter_groups(self.config_bag, group_type)
|
return self.config_bag.config.iter_groups(self.config_bag, group_type)
|
||||||
elif type == 'all':
|
elif type == 'all':
|
||||||
return self.config_bag.config.cfgimpl_get_children(recursive,
|
if group_type:
|
||||||
self.config_bag)
|
raise APIError(_('not implemented yet'))
|
||||||
|
if recursive:
|
||||||
|
if not self.config_bag.force_unrestraint:
|
||||||
|
raise APIError(_('not implemented yet'))
|
||||||
|
else:
|
||||||
|
return self.config_bag.config.cfgimpl_get_description()._cache_paths[1]
|
||||||
|
else:
|
||||||
|
return self.config_bag.config.cfgimpl_get_children(self.config_bag)
|
||||||
else:
|
else:
|
||||||
raise APIError(_('unknown list type {}').format(type))
|
raise APIError(_('unknown list type {}').format(type))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue