add ObsoleteSource for compatibility redirects
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 23 Sep 2007 23:26:41 +0000 (23:26 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 23 Sep 2007 23:26:41 +0000 (23:26 +0000)
lib/python/Components/Sources/Source.py

index 49bbdbc..ecd7013 100644 (file)
@@ -15,3 +15,10 @@ class Source(Element):
        
        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
+