summaryrefslogtreecommitdiffstats
path: root/core/views_survex.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-03-27 18:22:07 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2021-03-27 18:22:07 +0000
commitffaaea497c44f362a619d95da097def836a28b50 (patch)
tree417ccaae7e1d635408a02f8bd29962f7d8b665fe /core/views_survex.py
parente7947069a2877b47c1dd7a18b686da5bbf3e160b (diff)
downloadtroggle-ffaaea497c44f362a619d95da097def836a28b50.tar.gz
troggle-ffaaea497c44f362a619d95da097def836a28b50.tar.bz2
troggle-ffaaea497c44f362a619d95da097def836a28b50.zip
re-ordering middleware and logon system
Diffstat (limited to 'core/views_survex.py')
-rw-r--r--core/views_survex.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/views_survex.py b/core/views_survex.py
index 2928897..9bec952 100644
--- a/core/views_survex.py
+++ b/core/views_survex.py
@@ -146,7 +146,7 @@ class SvxForm(forms.Form):
return "SAVED ."
def Process(self):
- print("....\n\n\n....Processing\n\n\n")
+ print(">>>>....\n\n\n....Processing\n\n\n")
froox = os.fspath(survexdatasetpath / (self.data['filename'] + ".svx"))
froog = os.fspath(survexdatasetpath / (self.data['filename'] + ".log"))
cwd = os.getcwd()
@@ -184,7 +184,7 @@ def svx(request, survex_file):
rcode = rform.cleaned_data['code']
outputtype = rform.cleaned_data['outputtype']
difflist = form.DiffCode(rcode)
- #print("ssss ", rform.data)
+ #print(">>>> ", rform.data)
if "revert" in rform.data:
pass
@@ -225,7 +225,7 @@ def svx(request, survex_file):
'difflist': difflist,
'logmessage':logmessage,
'form':form}
- vmap.update(csrf(request))
+ # vmap.update(csrf(request)) # this now refreshes to the wrong value, now that we user render(request,
if outputtype == "ajax":
return render(request, 'svxfiledifflistonly.html', vmap)
@@ -331,7 +331,7 @@ def survexcaveslist(request):
arealist = sorted([ (area, -int(re.match(r"\d*", f).group(0) or "0"), f) for f in os.listdir(cavesdir) ])
fnumlist += arealist
- print(fnumlist)
+ #print(fnumlist)
# go through the list and identify the contents of each cave directory
for area, num, cavedir in fnumlist: