<% req.req.headers_out['Cache-control'] = 'no-cache' domain = xml.domain if not session.get('isAdmin','') and session.get('domain', '') != domain.id: raise Exception('Illegal use') # isAdmin = session.get('isAdmin', '') %>

Domain Administration

<%=args.error and '' + args.error + ''or ''%>
Domain: <%= domain.id %>
Id:<%=domain.id%>
Description:
Repository Groups
Create new group
Name: 
Existing groups (id) <% for groupId in domain.repositoryGroupId: # name = asxml(url('/' + domain.id + '.' + groupId + '.repositoryGroup')).repositoryGroup.name %> <% # %>
<%=name%> (<%= groupId %>) Edit / View Delete

Targets <% if isAdmin: %>
Create new target
Name:  Type: 
<% # end ifAdmin %>
Existing targets <% def idAndName(id): return id, asxml(url('/xml/'+id+'.target')).target.name for id,name in map(idAndName, domain.targetId): # %> <% if isAdmin: %> <% # end ifAdmin %> <% # %>
<%=name%> <%=isAdmin and 'Edit / View' or 'View'%> Delete

Mappings <% if isAdmin: %>
Create new mapping
Name: 
<% # %>
Existing mappings <% def idAndNameForMapping(id): return id, asxml(url('/xml/'+id+'.mapping')).mapping.name for id,name in map(idAndNameForMapping, domain.mappingId): # %> <% if isAdmin: %> <% # %> <% # %>
<%=name%> <%=isAdmin and 'Edit / View' or 'View'%> Delete Test

Status
<% if isAdmin: %>

Back to Domains & Users

<% # %>