From: David Mulder Date: Thu, 29 Mar 2018 15:07:53 +0000 (-0600) Subject: gpo: Move gp_sec_ext __init__ to base class X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=1d47ab7e2a49048f425d544b38bc980abb4f53ef gpo: Move gp_sec_ext __init__ to base class For this class to be extensible, the constructor should be available to subclasses. Signed-off-by: David Mulder Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/gpclass.py b/python/samba/gpclass.py index efca807fa64d..8405c8fe5956 100644 --- a/python/samba/gpclass.py +++ b/python/samba/gpclass.py @@ -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"