4.3.0r13
[enigma2.git] / usr / lib / enigma2 / python / Components / Converter / DreamboxModel.py
1 from Components.Converter.Converter import Converter
2
3 class DreamboxModel(Converter):
4         MODEL_MAP = {
5                 "dm525"  : "DM525 HD",
6                 "dm520"  : "DM520 HD",
7                 "dm820"  : "DM820 HD",
8                 "dm7080" : "DM7080 HD",
9         }
10
11         def __init__(self, arguments):
12                 Converter.__init__(self, arguments)
13
14         def getText(self):
15                 text = self.source.text
16                 return self.MODEL_MAP.get(text, text)
17         text = property(getText)