From c62a259bfa8d576c05e7ac6bd1b978340f30135b Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 23 Sep 2007 23:26:41 +0000 Subject: [PATCH] add ObsoleteSource for compatibility redirects --- lib/python/Components/Sources/Source.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/python/Components/Sources/Source.py b/lib/python/Components/Sources/Source.py index 49bbdbc..ecd7013 100644 --- a/lib/python/Components/Sources/Source.py +++ b/lib/python/Components/Sources/Source.py @@ -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 + -- 2.7.4