def startDump(): """Launch the dumping process: parse the card and print the results.""" card = card_interface.getCard() if not card is None: content = structure_parser.parseCard(card) display.prettyPrint(content)
def dumpCard(card): ''' Connects to a card, dumps the data, disconnects, and produces a beep ''' if not card_interface.connectToCard(card): return False Tkinter.Tk().bell() try: content = structure_parser.parseCard(card.connection) except CardConnectionException: return False card.connection.disconnect() Tkinter.Tk().bell() return content
def dumpCard(card): """ Connects to a card, dumps the data, disconnects, and produces a beep """ if not card_interface.connectToCard(card): return False Tkinter.Tk().bell() try: content = structure_parser.parseCard(card.connection) except CardConnectionException: return False card.connection.disconnect() Tkinter.Tk().bell() return content
def dumpCard(card): """Initie une connection à la carte, dumpe, se déconnecte et fait un beep.""" if not card_interface.connectToCard(card): return False Tkinter.Tk().bell() try: content = structure_parser.parseCard(card.connection) except CardConnectionException: return False card.connection.disconnect() Tkinter.Tk().bell() return content
def startDump(): card = card_interface.getCard() if card: content = structure_parser.parseCard(card) display.prettyPrint(content)