% req.req.headers_out['Cache-Control'] = 'no-cache' from merescoharvester.controlpanel.tools import getDomainId from merescoharvester.harvester.timeslot import Timeslot repositoryFile = args.name groupId = args.referrerGroup domainId = getDomainId(req.uri) if not session.get('isAdmin','') and session.get('domain', '') != domainId: raise Exception('Illegal use') # domainXml = asxml(url('/xml/'+ domainId + '.domain')) def targetTuple(targetId): return asxml(url('/xml/'+ targetId + '.target')).target.name, targetId def mappingTuple(mappingId): return asxml(url('/xml/'+ mappingId + '.mapping')).mapping.name, mappingId targets = [] for targetId in domainXml.domain.targetId: targets.append(targetTuple(targetId)) mappings = [] for mappingId in domainXml.domain.mappingId: mappings.append(mappingTuple(mappingId)) %>
Repository Administration