diff --git a/examples/nw/logic/__init__.py b/examples/nw/logic/__init__.py index ff7eac2..696e7c2 100644 --- a/examples/nw/logic/__init__.py +++ b/examples/nw/logic/__init__.py @@ -60,7 +60,7 @@ if by_rules: LogicBank.activate(session=session, activator=declare_logic) else: - legacy_setup.setup(session) # ignore test asserts that fail due to (unimplemenmted) counts (else ok) + legacy_setup.setup(session) # ignore test asserts that fail due to (unimplemented) counts (else ok) print("\n") print("*********************") diff --git a/examples/nw/tests/__init__.py b/examples/nw/tests/__init__.py index f00af13..727fea3 100644 --- a/examples/nw/tests/__init__.py +++ b/examples/nw/tests/__init__.py @@ -24,7 +24,7 @@ def copy_gold_over_db(): def setUp(file: str): - """ copy gold over db + """ copy gold over db, setup-complete banner """ copy_gold_over_db() diff --git a/logic_bank/exec_row_logic/logic_row.py b/logic_bank/exec_row_logic/logic_row.py index bafa232..b8ca4e2 100644 --- a/logic_bank/exec_row_logic/logic_row.py +++ b/logic_bank/exec_row_logic/logic_row.py @@ -879,7 +879,7 @@ def delete(self, reason: str = None, row: base = None, do_not_adjust_list = None user_logic_row.insert(reason=reason) else: self.reason = reason - self.log("delete - " + reason) + self.log("Delete - " + reason) self.early_row_event_all_classes("Delete - " + reason) self.early_row_events() self.adjust_parent_aggregates(do_not_adjust_list=do_not_adjust_list) @@ -937,7 +937,7 @@ def save_altered_parents(self, do_not_adjust_list: List = None): else: is_do_not_adjust = self.parent_logic_row.is_in_list(do_not_adjust_list) if is_do_not_adjust: - self.child_logic_row.log_engine(f'do not adjust deleted parent row: {self.parent_role_name}') + self.child_logic_row.log(f'No adjustment on deleted parent: {self.parent_role_name}') else: parent_logic_row.ins_upd_dlt = "upd" parent_logic_row.update(reason="Adjusting " + self.parent_role_name + ": " + self.adjusting_attributes) diff --git a/logic_bank/rule_type/aggregate.py b/logic_bank/rule_type/aggregate.py index c1393d9..c818d18 100644 --- a/logic_bank/rule_type/aggregate.py +++ b/logic_bank/rule_type/aggregate.py @@ -98,7 +98,7 @@ def adjust_from_deleted_child(self, curr_value = getattr(parent_adjustor.parent_logic_row.row, self._column) is_do_not_adjust = parent_adjustor.parent_logic_row.is_in_list(do_not_adjust_list) if is_do_not_adjust: - # parent_adjustor.child_logic_row.log("do not adjust deleted rows") + parent_adjustor.child_logic_row.log_engine("do not adjust deleted rows") pass else: setattr(parent_adjustor.parent_logic_row.row, self._column, curr_value - delta)