Browse Source

[1259] Rename parameter to ds_client

Because datasource could represent something bigger behind the scenes.
Michal 'vorner' Vaner 13 years ago
parent
commit
32f075fa28
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/lib/python/isc/xfrin/diff.py

+ 5 - 5
src/lib/python/isc/xfrin/diff.py

@@ -51,24 +51,24 @@ class Diff:
     the changes to underlying data source right away, but keeps them for
     the changes to underlying data source right away, but keeps them for
     a while.
     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
         Initializes the diff to a ready state. It checks the zone exists
         in the datasource and if not, NoSuchZone is raised. This also creates
         in the datasource and if not, NoSuchZone is raised. This also creates
         a transaction in the data source.
         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
         You can also expect isc.datasrc.Error or isc.datasrc.NotImplemented
         exceptions.
         exceptions.
         """
         """
-        self.__updater = datasource.get_updater(zone, False)
+        self.__updater = ds_client.get_updater(zone, False)
         if self.__updater is None:
         if self.__updater is None:
             # The no such zone case
             # The no such zone case
             raise NoSuchZone("Zone " + str(zone) +
             raise NoSuchZone("Zone " + str(zone) +
                              " does not exist in the data source " +
                              " does not exist in the data source " +
-                             str(datasource))
+                             str(ds_client))
         self.__buffer = []
         self.__buffer = []
 
 
     def __check_commited(self):
     def __check_commited(self):