This method uses the self.__personalMap
dictionary to retrieve the set of URLs. Then we generate
that set in sorted order.
# - - - A c c e s s S u m m a r y . g e n P e r s o n U r l s
def genPersonUrls ( self, name ):
'''Generate all URLs for a personal account.
'''
#-- 1 --
# [ if name is a key in self.__personalMap ->
# urlSet := the corresponding value
# else -> raise StopIteration ]
try:
urlSet = self.__personalMap[name]
except KeyError:
raise StopIteration
#-- 2 --
# [ generate the members of urlSet in ascending order ]
for url in sorted(urlSet):
yield url
#-- 3 --
raise StopIteration