

def create_card(self, text=''):
    'Create a new card\n\n        In:\n            - ``text`` -- the title of the new card\n        '
    if text:
        if (not self.can_add_cards):
            raise exceptions.KanshaException(_('Limit of cards reached fo this list'))
        new_card = self.data.create_card(text, security.get_user().data)
        card_obj = self._services(comp.Card, new_card.id, self.card_extensions, self.action_log)
        self.cards.append(component.Component(card_obj, 'new'))
        values = {
            'column_id': self.id,
            'column': self.get_title(),
            'card': new_card.title,
        }
        card_obj.action_log.add_history(security.get_user(), 'card_create', values)
        self.index_cards([card_obj])
        return self

dataset/ETHPy150Open Net-ng/kansha/kansha/column/comp.py Column.create_card/VarMisuse@157/256 `card_obj`->`self`