Remove usage of .wrapped_item and some other fixes

This commit is contained in:
Thomas Krijnen
2026-01-10 11:01:18 +01:00
parent 5c9213426f
commit b66b04b001
55 changed files with 129 additions and 118 deletions
@@ -903,8 +903,8 @@ def usedin(inst, ref_name):
return []
_, __, attr = ref_name.split('.')
def filter():
for ref, attr_idx in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for ref, attr_idx in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())
@@ -44,8 +44,8 @@ def usedin(inst, ref_name):
(_, __, attr) = ref_name.split('.')
def filter():
for (ref, attr_idx) in inst.wrapped_data.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.wrapped_data.get_attribute_names()[attr_idx].lower() == attr:
for (ref, attr_idx) in inst.file.get_inverse(inst, allow_duplicate=True, with_attribute_indices=True):
if ref.get_attribute_names()[attr_idx].lower() == attr:
yield ref
return list(filter())