def remove_card_by_id(self, card_id):
        # find component
        card_comp = filter(lambda x: x().id == card_id, self.cards)[0]
        try:
            self.remove_card(card_comp())
        except (IndexError, ValueError):
            raise ValueError(u'Card has been deleted or does not belong to this list anymore')
        return card_comp
Generates a one-use only link for resetting password and sends to the user.
dataset/ETHPy150Open Net-ng/kansha/kansha/column/comp.py/Column.remove_card_by_id--crossover with--dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/clearinghouse/users/forms.py/LDAPPasswordResetForm.save