gpo: abstract methods are defined in the parent class
authorDavid Mulder <dmulder@suse.com>
Thu, 19 Jul 2018 15:48:11 +0000 (09:48 -0600)
committerAurélien Aptel <aaptel@samba.org>
Mon, 8 Oct 2018 16:17:14 +0000 (18:17 +0200)
These methods don't need redefined in the child
class.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
python/samba/gpclass.py

index 3cf1f10dbe39874f27608289861d6a680433ca4b..db388fa9755e99e3c149f8fdb3b24b1f0b0298b1 100644 (file)
@@ -357,14 +357,6 @@ class gp_ext_setter():
 
 
 class gp_inf_ext(gp_ext):
-    @abstractmethod
-    def list(self, rootpath):
-        pass
-
-    @abstractmethod
-    def apply_map(self):
-        pass
-
     def read(self, policy):
         ret = False
         inftable = self.apply_map()
@@ -398,10 +390,6 @@ class gp_inf_ext(gp_ext):
                     self.gp_db.commit()
         return ret
 
-    @abstractmethod
-    def __str__(self):
-        pass
-
 
 ''' Fetch the hostname of a writable DC '''