Changeset 820:7d1110d3a802


Ignore:
Timestamp:
09/25/16 06:41:23 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The version of the client is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/rpc.py

    r809 r820  
    120120        """Construct the booked flight object from the given RPC result
    121121        value."""
     122        self.status = BookedFlight.STATUS_BOOKED
    122123        super(BookedFlight, self).__init__(value, BookedFlight._instructions)
    123124        self.departureTime = \
     
    192193class Client(object):
    193194    """The RPC client interface."""
     195    # The client protocol version
     196    VERSION = 2
     197
    194198    # Result code: OK
    195199    RESULT_OK = 0
     
    263267        self._sessionID = None
    264268
    265         reply = Reply(self._server.login(self._userName, self._passwordHash))
     269        reply = Reply(self._server.login(self._userName, self._passwordHash,
     270                                         Client.VERSION))
    266271        if reply.result == Client.RESULT_OK:
    267272            self._loginCount += 1
Note: See TracChangeset for help on using the changeset viewer.