<% domain = asform(input) old_domain = xml target(filepath(domain.id + '.domain')) %> <%escape_xml(domain.id)%> <%escape_xml(domain.description)%> <% for repositoryGroupId in old_domain.domain.repositoryGroupId: req.write(repositoryGroupId.xml()) # for targetId in old_domain.domain.targetId: req.write(targetId.xml()) # for mappingId in old_domain.domain.mappingId: req.write(mappingId.xml()) # %> <% redirect('/page/domain.edit/' + domain.id + '.domain') %>