Browse Source

[1259] Adding data

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

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

@@ -66,7 +66,10 @@ class Diff:
         If this is not the case or if the diff was already commited, this
         If this is not the case or if the diff was already commited, this
         raises the ValueError exception.
         raises the ValueError exception.
         """
         """
-        pass
+        if rr.get_rdata_count() != 1:
+            raise ValueError('The rrset must contain exactly 1 Rdata, but ' +
+                             'it holds ' + str(rr.get_rdata_count()))
+        self.__buffer.append(('add', rr))
 
 
     def remove_data(self, rr):
     def remove_data(self, rr):
         """
         """