2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 20:37:09 +00:00

tunnelfiles scheme added

This commit is contained in:
goatchurch
2009-09-11 23:56:47 +01:00
parent b80168c099
commit 12cf3a6d53
18 changed files with 277 additions and 233 deletions

View File

@@ -45,23 +45,6 @@ def todo(request):
totallogbookentries = LogbookEntry.objects.count()
return render_with_context(request,'index.html', {'expeditions':expeditions, 'all':'all', 'totallogbookentries':totallogbookentries, "message":message})
def calendar(request, year):
week=['S','S','M','T','W','T','F']
expedition = Expedition.objects.get(year=year)
personexpeditions = expedition.personexpedition_set.all()
listdays = [ ] # the columns of the table
date = expedition.date_from
while date <= expedition.date_to:
listdays.append(date)
date += datetime.timedelta(days=1)
personexpeditiondays = [ ]
for personexpedition in personexpeditions:
pelistdays = [ (personexpedition.date_from and (personexpedition.date_from <= date < personexpedition.date_to)) for date in listdays ]
personexpeditiondays.append([personexpedition, pelistdays])
return render_with_context(request,'calendar.html', {"expedition":expedition, "listdays":listdays, "personexpeditiondays":personexpeditiondays})
def controlPanel(request):
jobs_completed=[]