gpo: Move gp_sec_ext __init__ to base class
authorDavid Mulder <dmulder@suse.com>
Thu, 29 Mar 2018 15:07:53 +0000 (09:07 -0600)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 12 Apr 2018 06:13:34 +0000 (08:13 +0200)
For this class to be extensible, the constructor
should be available to subclasses.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/gpclass.py

index efca807fa64d2a288ff1d37157162a995305ff57..8405c8fe59565f2b837141385cff7c975cbfd99b 100644 (file)
@@ -286,6 +286,9 @@ class GPOStorage:
 class gp_ext(object):
     __metaclass__ = ABCMeta
 
+    def __init__(self, logger):
+        self.logger = logger
+
     @abstractmethod
     def list(self, rootpath):
         pass
@@ -424,9 +427,6 @@ class gp_sec_ext(gp_ext):
 
     count = 0
 
-    def __init__(self, logger):
-        self.logger = logger
-
     def __str__(self):
         return "Security GPO extension"