%
from merescoharvester.controlpanel.tools import getDomainId
domainId = args.domainId
repositoryId = args.repositoryId
filename = '%s.%s.repository'%(domainId, repositoryId)
repository = asxml(url('/xml/%s'%filename)).repository
target(filepath(filename))
%>
<% escape_xml(repository.id) %>
<% escape_xml(repository.repositoryGroupId) %>
<% escape_xml(repository.complete) %>
<% escape_xml(repository.baseurl) %>
<% escape_xml(repository.set) %>
<% escape_xml(repository.collection) %>
<% escape_xml(repository.targetId) %>
<% escape_xml(repository.metadataPrefix) %>
<% escape_xml(repository.mappingId) %>
<%
target()
type('text/xml; charset=utf-8')
%>
success