diff options
author | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-11 23:56:47 +0100 |
---|---|---|
committer | goatchurch <goatchurch@ubuntu.clocksoft.dom> | 2009-09-11 23:56:47 +0100 |
commit | 12cf3a6d534e5038b5d78b11a03cef2b81f5f852 (patch) | |
tree | 30d6f4e0891ae28750ca9dd97c74432c17683384 /core/views_other.py | |
parent | b80168c099b5805dfc9c1fee576d00cabc31e2d2 (diff) | |
download | troggle-12cf3a6d534e5038b5d78b11a03cef2b81f5f852.tar.gz troggle-12cf3a6d534e5038b5d78b11a03cef2b81f5f852.tar.bz2 troggle-12cf3a6d534e5038b5d78b11a03cef2b81f5f852.zip |
tunnelfiles scheme added
Diffstat (limited to 'core/views_other.py')
-rw-r--r-- | core/views_other.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core/views_other.py b/core/views_other.py index 78d3bd1..3acb87d 100644 --- a/core/views_other.py +++ b/core/views_other.py @@ -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=[]
|