master groups that have multis

This commit is contained in:
gwen
2013-02-06 17:19:56 +01:00
parent a404c4c992
commit 29914051e0
2 changed files with 24 additions and 7 deletions

View File

@ -489,7 +489,11 @@ class OptionDescription(HiddenBaseType, DisabledBaseType):
for child in self._children:
if isinstance(child, OptionDescription):
raise ConfigError("master group {} shall not have "
"a subgroup".format(self._name))
"a subgroup".format(self._name))
if not child.multi:
raise ConfigError("not allowed option {0} in group {1}"
": this option is not a multi".format(child._name,
self._name))
if child._name == self._name:
identical_master_child_name = True
if not identical_master_child_name: