summaryrefslogtreecommitdiffstats
path: root/core/views_other.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-06 22:51:55 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-06 22:51:55 +0100
commitfda50ed570c886966b056d303965104275221667 (patch)
treeca4c0de89f887fcf9fdeaba2f07870310d0d9d82 /core/views_other.py
parentf8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d (diff)
downloadtroggle-fda50ed570c886966b056d303965104275221667.tar.gz
troggle-fda50ed570c886966b056d303965104275221667.tar.bz2
troggle-fda50ed570c886966b056d303965104275221667.zip
attempt to simplify wnt horribly wrong
Diffstat (limited to 'core/views_other.py')
-rw-r--r--core/views_other.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views_other.py b/core/views_other.py
index 0b56786..c31777a 100644
--- a/core/views_other.py
+++ b/core/views_other.py
@@ -15,6 +15,7 @@ from troggle.core.models_survex import SurvexLeg
from troggle.helper import login_required_if_public
from troggle.core.forms import UploadFileForm
+print("** importing troggle/core/views_other.py")
def showrequest(request):
return HttpResponse(request.GET)
@@ -57,11 +58,12 @@ def controlPanel(request):
jobs_completed=[]
if request.method=='POST':
if request.user.is_superuser:
+ # NONE of this works now that databaseReset has been so extensively rewritten
#importlist is mostly here so that things happen in the correct order.
#http post data seems to come in an unpredictable order, so we do it this way.
importlist=['reinit_db', 'import_people', 'import_caves', 'import_logbooks',
- 'import_survexblks', 'import_QMs', 'import_survexpos', 'import_surveyscans', 'import_tunnelfiles']
+ 'import_survexblks', 'import_QMs', 'import_surveyscans', 'import_tunnelfiles']
databaseReset.dirsredirect()
for item in importlist:
if item in request.POST: