Changeset 854:3e7dca86c1ed for src/mlx/web.py
- Timestamp:
- 05/21/17 15:21:55 (7 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/web.py
r853 r854 1326 1326 #------------------------------------------------------------------------------ 1327 1327 1328 class GetAcceptedFlights(RPCRequest): 1329 """Request to get the accepted flights.""" 1330 def __init__(self, client, callback): 1331 """Construct the request with the given client and callback function.""" 1332 super(GetAcceptedFlights, self).__init__(client, callback) 1333 1334 def run(self): 1335 """Perform the login request.""" 1336 result = Result() 1337 1338 result.flights = self._client.getAcceptedFlights() 1339 1340 return result 1341 1342 #------------------------------------------------------------------------------ 1343 1328 1344 class Handler(threading.Thread): 1329 1345 """The handler for the web services. … … 1419 1435 self._addRequest(DeleteFlights(self._rpcClient, callback, flightIDs)) 1420 1436 1437 def getAcceptedFlights(self, callback): 1438 """Enqueue a request to get the accepted flights.""" 1439 self._addRequest(GetAcceptedFlights(self._rpcClient, callback)) 1440 1421 1441 def run(self): 1422 1442 """Process the requests."""
Note:
See TracChangeset
for help on using the changeset viewer.