gpo: Rename the inf_to class to gp_ext_setter
authorDavid Mulder <dmulder@suse.com>
Thu, 29 Mar 2018 14:00:15 +0000 (08:00 -0600)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 12 Apr 2018 06:13:34 +0000 (08:13 +0200)
This class will be subclassed and used for more
than just inf settings application.

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 33c9001cb6d0e86778507d64ea34069cb9a57da0..efca807fa64d2a288ff1d37157162a995305ff57 100644 (file)
@@ -302,7 +302,7 @@ class gp_ext(object):
     def __str__(self):
         pass
 
-class inf_to():
+class gp_ext_setter():
     __metaclass__ = ABCMeta
 
     def __init__(self, logger, ldb, gp_db, lp, attribute, val):
@@ -328,7 +328,7 @@ class inf_to():
     def __str__(self):
         pass
 
-class inf_to_kdc_tdb(inf_to):
+class inf_to_kdc_tdb(gp_ext_setter):
     def mins_to_hours(self):
         return '%d' % (int(self.val)/60)
 
@@ -357,7 +357,7 @@ class inf_to_kdc_tdb(inf_to):
     def __str__(self):
         return 'Kerberos Policy'
 
-class inf_to_ldb(inf_to):
+class inf_to_ldb(gp_ext_setter):
     '''This class takes the .inf file parameter (essentially a GPO file mapped
     to a GUID), hashmaps it to the Samba parameter, which then uses an ldb
     object to update the parameter to Samba4. Not registry oriented whatsoever.