sort zone list, assert unique elements

This commit is contained in:
Darren Ranalli 2003-10-09 01:22:15 +00:00
parent c5975d23f7
commit 60e7fb5596
1 changed files with 4 additions and 1 deletions

View File

@ -359,7 +359,10 @@ class ClientRepository(ConnectionRepository.ConnectionRepository):
# if we have an explicit list of visible zones, add them
if visibleZoneList is not None:
for zone in visibleZoneList:
vzl = list(visibleZoneList)
vzl.sort()
assert PythonUtil.uniqueElements(vzl)
for zone in vzl:
datagram.addUint32(zone)
# send the message