summaryrefslogtreecommitdiffstats
path: root/core/views_other.py
diff options
context:
space:
mode:
authorgoatchurch <goatchurch@ubuntu.clocksoft.dom>2009-09-11 23:56:47 +0100
committergoatchurch <goatchurch@ubuntu.clocksoft.dom>2009-09-11 23:56:47 +0100
commit12cf3a6d534e5038b5d78b11a03cef2b81f5f852 (patch)
tree30d6f4e0891ae28750ca9dd97c74432c17683384 /core/views_other.py
parentb80168c099b5805dfc9c1fee576d00cabc31e2d2 (diff)
downloadtroggle-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.py17
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=[]