add __iter__ to Clients

This commit is contained in:
Thor77 2015-08-26 12:44:56 +02:00
parent 4d18c6549a
commit 2699d72b52
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,12 @@ class Clients:
self += id_or_uid
return self.clients_by_uid[id_or_uid]
def __iter__(self):
for id_client in self.clients_by_id.values():
yield id_client
for uid_client in self.clients_by_uid.values():
yield uid_client
class Client: