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