From ea7d297c9b19ddb01f1448902df2049b6bb476bf Mon Sep 17 00:00:00 2001 From: gwen Date: Mon, 25 Feb 2013 15:12:09 +0100 Subject: [PATCH] private method _get_multitype() --- tiramisu/config.py | 1 - tiramisu/value.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tiramisu/config.py b/tiramisu/config.py index ab2b04d..5c66e24 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -30,7 +30,6 @@ from tiramisu.option import (OptionDescription, Option, SymLinkOption, from tiramisu.setting import groups, owners, Setting from tiramisu.value import Values - # ____________________________________________________________ class Config(object): "main configuration management entry" diff --git a/tiramisu/value.py b/tiramisu/value.py index 44c06ee..0c33fe3 100644 --- a/tiramisu/value.py +++ b/tiramisu/value.py @@ -38,7 +38,7 @@ class Values(object): self.slaves = {} self.context = context - def _get_multitype(self): + def _get_multitype(self, opt): if opt in self.slaves: # slave multitype = multitypes.slave @@ -54,7 +54,7 @@ class Values(object): "special case for the multis: they never return None" if opt not in self.values: if opt.is_multi(): - multitype = self._get_multitype() + multitype = self._get_multitype(opt) return Multi(opt.getdefault(), self.context, opt, multitype) else: return opt.getdefault() @@ -103,7 +103,7 @@ class Values(object): _result = [result] else: _result = result - multitype = self._get_multitype() + multitype = self._get_multitype(opt) return Multi(_result, self.context, opt, multitype) def __getitem__(self, opt):