From: Michal 'vorner' Vaner Date: Mon, 3 Oct 2011 09:04:07 +0000 (+0200) Subject: [1259] Rename parameter to ds_client X-Git-Tag: perftcpdns_before_epoll~37^2~30^2^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32f075fa288dc5ea049cbf72657386889144bd12;p=thirdparty%2Fkea.git [1259] Rename parameter to ds_client Because datasource could represent something bigger behind the scenes. --- diff --git a/src/lib/python/isc/xfrin/diff.py b/src/lib/python/isc/xfrin/diff.py index 962e51c283..9a286e80fe 100644 --- a/src/lib/python/isc/xfrin/diff.py +++ b/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 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):