master subgroups that have subgroups
authorgwen <gremond@cadoles.com>
Fri, 11 Jan 2013 08:46:41 +0000 (09:46 +0100)
committergwen <gremond@cadoles.com>
Fri, 11 Jan 2013 08:46:41 +0000 (09:46 +0100)
doc/tiramisu.jpeg
tiramisu/config.py

index 84b391d..0b5c4ae 100644 (file)
Binary files a/doc/tiramisu.jpeg and b/doc/tiramisu.jpeg differ
index 553e9b7..4bec77e 100644 (file)
@@ -96,19 +96,19 @@ class Config(object):
         except TypeError:
             pass
         else:
-            #if master/slave group, add default_multi value if length of valu
-            #if inferior to group length
+            #if master/slave group, add default_multi value if length of value
+            #is inferior of length's group
             for child in self._cfgimpl_descr._children:
-                value = self._cfgimpl_values[child._name]
-                if value is None:
-                    len_child = 0
-                    value = Multi([], config=self, opt=child, force_append=False)
-                else:
-                    len_child = len(value)
-                if len_child < max_len_child:
-                    for num in range(len_child, max_len_child):
-                        value._append_default()
-
+                if isinstance(child, Option):
+                    value = self._cfgimpl_values[child._name]
+                    if value is None:
+                        len_child = 0
+                        value = Multi([], config=self, opt=child, force_append=False)
+                    else:
+                        len_child = len(value)
+                    if len_child < max_len_child:
+                        for num in range(len_child, max_len_child):
+                            value._append_default()
 
     def cfgimpl_update(self):
         """dynamically adds `Option()` or `OptionDescription()`