<% domainId = args.domainId stateDir = req.get_options()['stateDir'] from os.path import join, isfile def listIds(repositoryId): idfile = join(stateDir, domainId, repositoryId + '.ids') if isfile(idfile): try: f = open(idfile) for id in map(str.strip, filter(None, f)): %><%escape_xml(id)%> <% # finally: f.close() # repositoryGroupId = args.repositoryGroupId groups = asxml(url('/' + domainId + '.domain')).domain.repositoryGroupId exists = filter(lambda g:g == repositoryGroupId, groups) if not exists: include('/saharageterror?errorCode=idDoesNotExist') else: type('text/xml; charset=utf-8') repositories = asxml(url('/' + domainId + '.' + repositoryGroupId + '.repositoryGroup')).repositoryGroup.repositoryId %> <% include('/saharagetTime') %> GetIdentifiers <% escape_xml(domainId) %> <% escape_xml(repositoryGroupId) %> <% for repositoryId in repositories: listIds(repositoryId) # %>