Пример #1
0
 def get_cards(self):
     """ Returns cards list """
     cards = []
     try:
         acards = alsacard.card_list()
         for card in acards:
             try:
                 self.get_mixers(card)[0]
             except IndexError:
                 cards.append(None)
             else:
                 cards.append(alsacard.card_get_name(card))
     except Exception, err:
         log.exception(str(err))
Пример #2
0
 def get_cards(self):
     """ Returns cards list """
     cards = []
     try:
         acards = alsacard.card_list()
         for card in acards:
             try:
                 self.get_mixers(card)[0]
             except IndexError:
                 cards.append(None)
             else:
                 cards.append(alsacard.card_get_name(card))
     except Exception, err:
         log.exception(str(err))
Пример #3
0
 def get_card_name(self):
     """ Returns card name """
     try:
         return alsacard.card_get_name(self.card_index)
     except Exception, err:
         log.exception(str(err))
Пример #4
0
 def get_card_name(self):
     """ Returns card name """
     try:
         return alsacard.card_get_name(self.card_index)
     except Exception, err:
         log.exception(str(err))