<% domainId = args.domainId repositoryId = args.repositoryId exists = False groups = asxml(url('/' + domainId + '.domain')).domain.repositoryGroupId for groupId in groups: # if exists: break repositories = asxml(url('/' + domainId + '.' + groupId + '.repositoryGroup')).repositoryGroup.repositoryId for repo in repositories: if repo == repositoryId: exists = True break if not exists: include('/saharageterror?errorCode=idDoesNotExist') else: # type('text/xml; charset=utf-8') %> <% include('/saharagetTime') %> GetRepository <% escape_xml(domainId) %> <% escape_xml(repositoryId) %> <% repositoryXml = asxml(url('/' + domainId + '.' + repositoryId + '.repository')).repository %> <%=repositoryXml.xml()%> <% # %>