<% 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

<% repo = xml.repository %>
Repository: <%=repo.id%> <% def renderDropdown(index, selectName, aTupleList, selectedValue, wildcardName=''): # %> <% # def renderTimeslot(index, aTimeslot): # weeks = map(lambda x:(str(x),x), range(1,54)) hours = map(lambda x:(str(x),x), range(25)) weekdays = [('0','Monday'),('1','Tuesday'),('2','Wednesday'),('3','Thursday'),('4','Friday'),('5','Saturday'),('6','Sunday')] req.write('') if index != 0: req.write(""" """ % locals()) if not aTimeslot.valid(): req.write('') # %>
Id: <%=repo.id%>
Baseurl:
Set:
Metadata Prefix:
Mapping:
Target:
Target Collection:
Harvest: >
Complete in one attempt: >Tells the harvester to complete harvesting in one attempt. Generally this option should not be required. Only for repositories with shortlived resumptionTokens.
Next action:
') renderDropdown(index, 'shopclosedWeek', weeks, aTimeslot.beginweek, 'Any week') req.write('') renderDropdown(index, 'shopclosedWeekDay', weekdays, aTimeslot.beginday, 'Any day') req.write('') req.write('from') renderDropdown(index, 'shopclosedBegin', hours, aTimeslot.beginhour) req.write(':00 hrs ') req.write('') req.write(' until') renderDropdown(index, 'shopclosedEnd', hours, aTimeslot.endhour) req.write(':00 hrs') req.write(' delete

Invalid timeslot specification, will be ignored.

Closing hours <% req.write('') for i in ['Week', 'Day', 'Begin', 'End', '']: req.write('' % i) req.write('') index = 0 for shopclosed in repo.shopclosed: index = index + 1 closed=Timeslot(shopclosed) # %> <% renderTimeslot(index,closed)%> <% # %> <% renderTimeslot(0, Timeslot('*:*:0:0-*:*:0:0'))%>
%s

Status

Useful links (You may need to save first.)

Back to repositorygroup