Similar to Section 43, “AccessSummary.genPersonUrls():
All URLs for a given person”.
# - - - A c c e s s S u m m a r y . g e n O f f i c i a l U r l s
def genOfficialUrls ( self, name ):
'''Generate all URLs for a officialal account.
'''
#-- 1 --
# [ if name is a key in self.__officialMap ->
# urlSet := the corresponding value
# else -> raise StopIteration ]
try:
urlSet = self.__officialMap[name]
except KeyError:
raise StopIteration
#-- 2 --
# [ generate the members of urlSet in ascending order ]
for url in sorted(urlSet):
yield url
#-- 3 --
raise StopIteration