Browse Source

[1259] Creation of the Diff

Michal 'vorner' Vaner 13 years ago
parent
commit
85455b6e2f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/lib/python/isc/xfrin/diff.py

+ 6 - 1
src/lib/python/isc/xfrin/diff.py

@@ -50,7 +50,12 @@ class Diff:
         You can also expect isc.datasrc.Error or isc.datasrc.NotImplemented
         exceptions.
         """
-        pass
+        self.__updater = datasource.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))
 
     def add_data(self, rr):
         """