first pickle, then save to avoid killing config file on sigint
[enigma2.git] / lib / python / Components / Sources / Source.py
index 77fcb55f001e84bdb55be384412bb339ae8025fb..ecd701394ee71304c4ad18789e83cba4b2b21406 100644 (file)
@@ -1,5 +1,6 @@
-class Source(object):
+from Components.Element import Element
 
+class Source(Element):
        def execBegin(self):
                pass
        
@@ -14,3 +15,10 @@ class Source(object):
        
        def destroy(self):
                self.__dict__.clear()
+
+class ObsoleteSource(Source):
+       def __init__(self, new_source, description = None, removal_date = "as soon as possible"):
+               self.new_source = new_source
+               self.description = description
+               self.removal_date = removal_date
+