table_name = f'{item}_{attr}'
for _ in db_conn.row_where(table_name, 'condition', self.id_):
raise HandledException('cannot remove Condition in use')
+ db_conn.delete_where('condition_titles', 'parent', self.id_)
+ db_conn.delete_where('condition_descriptions', 'parent', self.id_)
super().remove(db_conn)
db_conn.delete_where('process_disables', 'process', self.id_)
for step in self.explicit_steps:
step.remove(db_conn)
+ db_conn.delete_where('process_titles', 'parent', self.id_)
+ db_conn.delete_where('process_descriptions', 'parent', self.id_)
+ db_conn.delete_where('process_efforts', 'parent', self.id_)
super().remove(db_conn)