Merge commit 'origin/bug_112_enable_extensions_manager' into experimental
[enigma2.git] / lib / python / Components / Converter / Combine.py
1 from Converter import Converter
2 from Components.Element import cached
3
4 class Combine(Converter, object):
5         SINGLE_SOURCE = False
6
7         def __init__(self, arg = None, func = None):
8                 Converter.__init__(self, arg)
9                 assert func is not None
10                 self.func = func
11
12         @cached
13         def getValue(self):
14                 return self.func(self.sources)
15
16         value = property(getValue)