

def on_event(self, comp, event):
    if event.is_(events.CardClicked):
        card_comp = event.data
        card_comp.becomes(popin.Popin(card_comp, 'edit'))
    elif event.is_(events.ParentTitleNeeded):
        return self.get_title()
    elif event.is_(events.CardEditorClosed):
        card_bo = event.emitter
        slot = event.data
        slot.becomes(card_bo)
        card_bo.add_to_index(self.search_engine, self.board.id, update=True)
        self.search_engine.commit()
        self.emit_event(comp, events.SearchIndexUpdated)

dataset/ETHPy150Open Net-ng/kansha/kansha/column/comp.py Column.on_event/original