Changeset 820:7d1110d3a802 for src/mlx
- Timestamp:
- 09/25/16 06:41:23 (8 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/rpc.py
r809 r820 120 120 """Construct the booked flight object from the given RPC result 121 121 value.""" 122 self.status = BookedFlight.STATUS_BOOKED 122 123 super(BookedFlight, self).__init__(value, BookedFlight._instructions) 123 124 self.departureTime = \ … … 192 193 class Client(object): 193 194 """The RPC client interface.""" 195 # The client protocol version 196 VERSION = 2 197 194 198 # Result code: OK 195 199 RESULT_OK = 0 … … 263 267 self._sessionID = None 264 268 265 reply = Reply(self._server.login(self._userName, self._passwordHash)) 269 reply = Reply(self._server.login(self._userName, self._passwordHash, 270 Client.VERSION)) 266 271 if reply.result == Client.RESULT_OK: 267 272 self._loginCount += 1
Note:
See TracChangeset
for help on using the changeset viewer.