2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 16:57:10 +00:00

3dtopos to survexpos + comments

This commit is contained in:
Philip Sargent
2020-07-20 22:53:26 +01:00
parent 8e77a70ad6
commit f131509c56
9 changed files with 578 additions and 30 deletions

View File

@@ -16,6 +16,13 @@ from troggle.core.forms import UploadFileForm
print("** importing troggle/core/views_other.py")
"""Utility functions and code to serve the control panel and individual user's
progress and task list (deprecated as we do not have individual user login).
Also has code to download a logbook in a choice of formats (why?!) and to
download all QMs (not working)
"""
def showrequest(request):
return HttpResponse(request.GET)
@@ -29,8 +36,6 @@ def frontpage(request):
#from django.contrib.admin.templatetags import log
return render(request,'frontpage.html', locals())
print(" - controlPanel() is next in troggle/core/views_other.py")
def controlPanel(request):
jobs_completed=[]
@@ -54,8 +59,6 @@ def controlPanel(request):
return render(request,'controlPanel.html', {'caves':Cave.objects.all(),'expeditions':Expedition.objects.all(),'jobs_completed':jobs_completed})
print(" - downloadLogbook() is next in troggle/core/views_other.py")
def downloadLogbook(request,year=None,extension=None,queryset=None):
@@ -89,8 +92,6 @@ def downloadLogbook(request,year=None,extension=None,queryset=None):
response.write(t.render(c))
return response
print(" - downloadQMs() is next in troggle/core/views_other.py")
def downloadQMs(request):
# Note to self: use get_cave method for the below
@@ -126,8 +127,6 @@ def ajax_QM_number(request):
return HttpResponse(res)
print(" - logbook_entry_suggestions() is next in troggle/core/views_other.py")
def logbook_entry_suggestions(request):
"""