mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 22:37:08 +00:00
re-ordering middleware and logon system
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user