You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Table objects are created by FactoryCfgTable(table_name, data_dict), w/ data_dict containing the sections of the YAML spec. Ex (note the dict key 'key-field'):
PROBLEM: _encode_namekey(...) calls self._data_dict.get("key","name") instead of "key-field" causing the default field, name, to be checked every time regardless of whether the YAML definition specifies multiple key-fields.
def_encode_namekey(self, get_cmd, dot, namekey_value):
""" encodes the specific namekey_value into the get command so that the returned XML configuration is the complete hierarchy of data. """namekey_xpath=self._data_dict.get("key", "name") # line 339 is the problem: "key" should be "key-field"keylist_xml=self._grindkey(namekey_xpath, namekey_value)
for_addinkeylist_xml:
dot.append(_add)
The text was updated successfully, but these errors were encountered:
Walkthrough
FactoryCfgTable(table_name, data_dict)
, w/data_dict
containing the sections of the YAML spec. Ex (note the dict key 'key-field'):FactoryCfgTable
setsCfgTable
's constructor setscfgtable.get()
calls_encode_namekey(...)
callsself._data_dict.get(
"key","name")
instead of "key-field" causing the default field, name, to be checked every time regardless of whether the YAML definition specifies multiple key-fields.The text was updated successfully, but these errors were encountered: