Show More
@@ -1308,7 +1308,11 b' class Client(HasTraits):' | |||||
1308 | verbose : bool |
|
1308 | verbose : bool | |
1309 | Whether to return lengths only, or lists of ids for each element |
|
1309 | Whether to return lengths only, or lists of ids for each element | |
1310 | """ |
|
1310 | """ | |
1311 | engine_ids = self._build_targets(targets)[1] |
|
1311 | if targets == 'all': | |
|
1312 | # allow 'all' to be evaluated on the engine | |||
|
1313 | engine_ids = None | |||
|
1314 | else: | |||
|
1315 | engine_ids = self._build_targets(targets)[1] | |||
1312 | content = dict(targets=engine_ids, verbose=verbose) |
|
1316 | content = dict(targets=engine_ids, verbose=verbose) | |
1313 | self.session.send(self._query_socket, "queue_request", content=content) |
|
1317 | self.session.send(self._query_socket, "queue_request", content=content) | |
1314 | idents,msg = self.session.recv(self._query_socket, 0) |
|
1318 | idents,msg = self.session.recv(self._query_socket, 0) |
@@ -430,7 +430,7 b' class Hub(SessionFactory):' | |||||
430 | """turn any valid targets argument into a list of integer ids""" |
|
430 | """turn any valid targets argument into a list of integer ids""" | |
431 | if targets is None: |
|
431 | if targets is None: | |
432 | # default to all |
|
432 | # default to all | |
433 |
|
|
433 | return self.ids | |
434 |
|
434 | |||
435 | if isinstance(targets, (int,str,unicode)): |
|
435 | if isinstance(targets, (int,str,unicode)): | |
436 | # only one target specified |
|
436 | # only one target specified |
General Comments 0
You need to be logged in to leave comments.
Login now