<% domainId = args.domainId mappingId = args.mappingId mappings = asxml(url('/' + domainId + '.domain')).domain.mappingId exists = False for m in mappings: if m == mappingId: exists = True break if not exists: include('/saharageterror?errorCode=idDoesNotExist') else: type('text/xml; charset=utf-8') %> <% include('/saharagetTime') %> GetMapping <% escape_xml(domainId) %> <% escape_xml(mappingId) %> <% m = asxml(url('/' + mappingId + '.mapping')) m.mapping.xml(req) %> <% # %>