def get_config_value(node, value_index):
 try:
  for value in node.values.values():
   if ((value.command_class == 112) and (value.index == value_index)):
    return value.data
 except RuntimeError:
  return get_config_value(node, value_index)

def get_config_value ( node , value_index ) : try : for value in node . values . values ( ) : if ( ( value . command_class == 112 ) and ( value . index == value_index ) ) : return value . data except RuntimeError : return get_config_value ( node , value_index )
retrieves the value of key from configuration in the following order: - from the session; if not found there then - from cookies; if not found there then - from the settings file if search_in_settings is true .