aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/GUISkin.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-02 01:54:54 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-11-02 01:54:54 +0000
commit7579ae7495f580bfa86f4216ef15811f54588c5a (patch)
tree0ab0b92635feebe025630b867645a21a4d629d05 /lib/python/Components/GUISkin.py
parent3e452d49848cb3c65f7dd8e42c42a30047989df7 (diff)
downloadenigma2-7579ae7495f580bfa86f4216ef15811f54588c5a.tar.gz
enigma2-7579ae7495f580bfa86f4216ef15811f54588c5a.zip
split Misc Converter/Source into RecordState and TunerInfo Source /
Converter add deprecation Warnings for some old InfoBar Components (Nim_A, NimB, NimA_Active, NimB_Active, BlinkingPoint)
Diffstat (limited to 'lib/python/Components/GUISkin.py')
-rw-r--r--lib/python/Components/GUISkin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py
index 39499c77..ce4d397d 100644
--- a/lib/python/Components/GUISkin.py
+++ b/lib/python/Components/GUISkin.py
@@ -20,7 +20,12 @@ class GUISkin:
val = self[key]
if isinstance(val, GUIComponent):
val.GUIcreate(parent)
- if not val.applySkin(desktop):
+ depr = val.deprecationInfo
+ if val.applySkin(desktop):
+ if depr:
+ print "WARNING: OBSOLETE COMPONENT '%s' USED IN SKIN. USE '%s' INSTEAD!" % (key, depr[0])
+ print "OBSOLETE COMPONENT WILL BE REMOVED %s, PLEASE UPDATE!" % (depr[1])
+ elif not depr:
print "warning, skin is missing element", key, "in", self
for w in self.additionalWidgets: