[svn] commit: r879 - /branches/jelte-configuration/src/lib/config/python/isc/config/ccsession.py

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Feb 19 09:29:42 UTC 2010


Author: jelte
Date: Fri Feb 19 09:29:42 2010
New Revision: 879

Log:
didn't update one function

Modified:
    branches/jelte-configuration/src/lib/config/python/isc/config/ccsession.py

Modified: branches/jelte-configuration/src/lib/config/python/isc/config/ccsession.py
==============================================================================
--- branches/jelte-configuration/src/lib/config/python/isc/config/ccsession.py (original)
+++ branches/jelte-configuration/src/lib/config/python/isc/config/ccsession.py Fri Feb 19 09:29:42 2010
@@ -233,19 +233,19 @@
            a DataTypeError if the value at the identifier is not a list,
            or if the given value_str does not match the list_item_spec
            """
-        module_spec = find_spec(self.config.specification, identifier)
+        module_spec = self.find_spec_part(identifier)
         if (type(module_spec) != dict or "list_item_spec" not in module_spec):
             raise DataTypeError(identifier + " is not a list")
-        value = parse_value_str(value_str)
-        check_type(module_spec, [value])
-        cur_list = isc.cc.data.find_no_exc(self.config_changes, identifier)
-        if not cur_list:
-            cur_list = isc.cc.data.find_no_exc(self.config.data, identifier)
+        value = isc.cc.data.parse_value_str(value_str)
+        isc.config.config_data.check_type(module_spec, [value])
+        cur_list, status = self.get_value(identifier)
+        #if not cur_list:
+        #    cur_list = isc.cc.data.find_no_exc(self.config.data, identifier)
         if not cur_list:
             cur_list = []
         if value in cur_list:
             cur_list.remove(value)
-        set(self.config_changes, identifier, cur_list)
+        self.set_value(identifier, cur_list)
 
     def commit(self):
         """Commit all local changes, send them through b10-cmdctl to




More information about the bind10-changes mailing list