From 56e40b4b0f436dc7d9214fd3a96a621c15bd9f10 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 11 May 2006 21:14:28 +0000 Subject: implement and re-enable default ac3 option --- lib/python/Components/config.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/python/Components/config.py') diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 7c7acc34..42172021 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -38,6 +38,18 @@ class configFile: else: self.configElements[key] = value + def getResolvedKey(self, key): + str = self.configElements[key] + if len(str): + pos = str.find('*') + if pos != -1: + str = str[pos+1:] + pos = str.find('*') + if pos != -1: + return str[:pos] + return str + return None + def save(self): if self.changed == 0: #no changes, so no write to disk needed return -- cgit v1.2.3