Lines Matching refs:keys
282 keys = [int(key) for key in path.lstrip("/").split('/')]
283 if len(keys) == 1:
285 elif len(keys) == 2:
286 if keys[0] not in data:
287 data[keys[0]] = {}
288 data[keys[0]].update(cls._decode_obj_inst(content))
289 elif len(keys) == 3:
290 if keys[0] not in data:
291 data[keys[0]] = {}
292 if keys[1] not in data[keys[0]]:
293 data[keys[0]][keys[1]] = {}
294 data[keys[0]][keys[1]].update(cls._decode_resource(content))
295 elif len(keys) == 4:
296 if keys[0] not in data:
297 data[keys[0]] = {}
298 if keys[1] not in data[keys[0]]:
299 data[keys[0]][keys[1]] = {}
300 if keys[2] not in data[keys[0]][keys[1]]:
301 data[keys[0]][keys[1]][keys[2]] = {}
302 data[keys[0]][keys[1]][keys[2]].update(cls._decode_resource(content))