Example #1
0
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)
Example #2
0
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
Example #3
0
File: loop.py Project: Zengwn/pssi
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
Example #4
0
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
Example #5
0
def startDump():
    card = card_interface.getCard()
    if card:
        content = structure_parser.parseCard(card)
        display.prettyPrint(content)