<% from merescoharvester.controlpanel.tools import getDomainId repository = asform(input) domainId = getDomainId(req.uri) fileName = args.name target(filepath(fileName)) groupId = args.referrerGroup %> <% escape_xml(repository.id) %> <% escape_xml(repository.repositoryGroupId) %> <% escape_xml(repository.use) %> <% escape_xml(repository.complete) %> <% escape_xml(repository.repositoryAction) %> <% escape_xml(repository.baseurl) %> <% escape_xml(repository.set) %> <% escape_xml(repository.collection) %> <% escape_xml(repository.targetId) %> <% escape_xml(repository.metadataPrefix) %> <% escape_xml(repository.mappingId) %> <% for i in range(1,1+int(repository.numberOfTimeslots)): # if repository.get('deleteTimeslot_' + str(i)+".x", None) == None: # %> <%= '%s:%s:%s:00-%s:%s:%s:00' % (repository.getfirst('shopclosedWeek_'+str(i)), repository.getfirst('shopclosedWeekDay_'+str(i)), repository.getfirst('shopclosedBegin_'+str(i)), repository.getfirst('shopclosedWeek_'+str(i)), repository.getfirst('shopclosedWeekDay_'+str(i)), repository.getfirst('shopclosedEnd_'+str(i))) %> <% # # if repository.get('addTimeslot', None) != None: # %> <%= '%s:%s:%s:00-%s:%s:%s:00' % (repository.getfirst('shopclosedWeek_0'), repository.getfirst('shopclosedWeekDay_0'), repository.getfirst('shopclosedBegin_0'), repository.getfirst('shopclosedWeek_0'), repository.getfirst('shopclosedWeekDay_0'), repository.getfirst('shopclosedEnd_0')) %> <% # %> <% # if repository.get('deleteTimeslot', None) != None: # %> <%= '%s:%s:%s:00-%s:%s:%s:00' % (repository.getfirst('shopclosedWeek_0'), repository.getfirst('shopclosedWeekDay_0'), repository.getfirst('shopclosedBegin_0'), repository.getfirst('shopclosedWeek_0'), repository.getfirst('shopclosedWeekDay_0'), repository.getfirst('shopclosedEnd_0')) %> <% # %> <% redirect('/page/repository.edit/' + fileName + '?referrerGroup='+groupId) %>