Fix iommi-data-path for rows and cells
@@ -682,6 +682,7 @@ def __init__(self, table, row, row_index, template, attrs, extra):
self.extra = extra
self.parent = table
self.attrs = attrs
+ self.name = 'row'
self.attrs = evaluate_attrs(self, table=table, row=row, bound_row=self)
def as_html(self):
@@ -710,7 +711,6 @@ def dunder_path(self):
class BoundCell(object):
def __init__(self, bound_row, bound_column):
-
assert bound_column.show
self.bound_column = bound_column
@@ -737,7 +737,8 @@ def attrs(self):
# TODO: fix this hack
Struct(
attrs=self.bound_column.cell.attrs,
- dunder_path=lambda: self.bound_column.dunder_path() + '__cell'
+ dunder_path=lambda: self.bound_column.dunder_path() + '__cell',
+ name='cell',
),
table=self.table,
column=self.bound_column,
