]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1259] Rename parameter to ds_client
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 3 Oct 2011 09:04:07 +0000 (11:04 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 3 Oct 2011 09:04:07 +0000 (11:04 +0200)
Because datasource could represent something bigger behind the scenes.

src/lib/python/isc/xfrin/diff.py

index 962e51c283d3e2c7d4227caba44af6468bed18cb..9a286e80fe63d6486901634988733574187a8153 100644 (file)
@@ -51,24 +51,24 @@ class Diff:
     the changes to underlying data source right away, but keeps them for
     a while.
     """
-    def __init__(self, datasource, zone):
+    def __init__(self, ds_client, zone):
         """
         Initializes the diff to a ready state. It checks the zone exists
         in the datasource and if not, NoSuchZone is raised. This also creates
         a transaction in the data source.
 
-        The datasource is the one containing the zone. Zone is isc.dns.Name
-        object representing the name of the zone (its apex).
+        The ds_client is the datasource client containing the zone. Zone is
+        isc.dns.Name object representing the name of the zone (its apex).
 
         You can also expect isc.datasrc.Error or isc.datasrc.NotImplemented
         exceptions.
         """
-        self.__updater = datasource.get_updater(zone, False)
+        self.__updater = ds_client.get_updater(zone, False)
         if self.__updater is None:
             # The no such zone case
             raise NoSuchZone("Zone " + str(zone) +
                              " does not exist in the data source " +
-                             str(datasource))
+                             str(ds_client))
         self.__buffer = []
 
     def __check_commited(self):