<% from slowfoot import binderytools type('text/xml; charset=utf-8') domainId = args.domainId repositoryGroupId = args.repositoryGroupId groups = asxml(url('/'+domainId+'.domain')).domain.repositoryGroupId exists = filter(lambda g:g == repositoryGroupId, groups) if repositoryGroupId and not exists: include('/saharageterror?errorCode=idDoesNotExist') else: # %> <% include('/saharagetTime') %> GetRepositories <% escape_xml(domainId) %><% if repositoryGroupId: allGroups = [ repositoryGroupId ] %> <% escape_xml(repositoryGroupId) %><% else: allGroups = groups # %> <% for groupId in allGroups: repositories = asxml(url('/' + domainId + '.' + groupId + '.repositoryGroup')).repositoryGroup.repositoryId for repositoryId in repositories: repositoryXml = asxml(url('/' + domainId + '.' + repositoryId + '.repository')).repository %> <%=repositoryXml.xml()%> <% # %> <% # %>