Browse Source

[2114] comment and style

Jelte Jansen 13 years ago
parent
commit
9e9b898d0f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/lib/python/isc/config/config_data.py

+ 6 - 1
src/lib/python/isc/config/config_data.py

@@ -486,14 +486,19 @@ class MultiConfigData:
                         else:
                         else:
                             return None
                             return None
                     id_part = id_parts.pop(0)
                     id_part = id_parts.pop(0)
-                    item_id, list_indices = isc.cc.data.split_identifier_list_indices(id_part)
+                    item_id, list_indices =\
+                        isc.cc.data.split_identifier_list_indices(id_part)
 
 
                     named_set_value, type = self.get_value(id_list)
                     named_set_value, type = self.get_value(id_list)
                     if item_id in named_set_value.keys():
                     if item_id in named_set_value.keys():
                         result = named_set_value[item_id]
                         result = named_set_value[item_id]
+                        # If the item is a list and we have indices in the
+                        # identifier part, continue with the item pointed to
+                        # by those indices
                         if list_indices is not None:
                         if list_indices is not None:
                             while len(list_indices) > 0:
                             while len(list_indices) > 0:
                                 result = result[list_indices.pop(0)]
                                 result = result[list_indices.pop(0)]
+
                         if len(id_parts) > 0:
                         if len(id_parts) > 0:
                             # we are looking for the *default* value.
                             # we are looking for the *default* value.
                             # so if not present in here, we need to
                             # so if not present in here, we need to