def delete_card(self, card):
        self.cards.pop(card.index)
        values = {'column_id': self.id, 'column': self.get_title(), 'card': card.get_title()}
        card.action_log.add_history(
            security.get_user(),
            u'card_delete', values)
        self.search_engine.delete_document(card.schema, card.id)
        self.search_engine.commit()
        card.delete()
        self.data.delete_card(card.data)
Check UID/GID switches when current effective UID is root.
dataset/ETHPy150Open Net-ng/kansha/kansha/column/comp.py/Column.delete_card--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_util.py/RunAsEffectiveUserTests.test_root