getitem for multis
authorgwen <gremond@cadoles.com>
Fri, 13 Jul 2012 09:25:31 +0000 (11:25 +0200)
committergwen <gremond@cadoles.com>
Fri, 13 Jul 2012 09:25:31 +0000 (11:25 +0200)
src/option.py

index 9339e12..ce06324 100644 (file)
@@ -42,7 +42,9 @@ class Multi(list):
         value =  super(Multi, self).__getitem__(key)
         if value is None:
             return self.child.default_multi
-            
+        else:
+            return value
+                        
     def __setitem__(self, key, value):
         if value is None:
             owner = 'default'