mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
bloody bugs
This commit is contained in:
parent
b086348d38
commit
d5887e8f99
@ -271,17 +271,22 @@ def svx(request, survex_file):
|
|||||||
outputtype = rform.cleaned_data["outputtype"] # used by CodeMirror ajax I think
|
outputtype = rform.cleaned_data["outputtype"] # used by CodeMirror ajax I think
|
||||||
difflist = form.DiffCode(rcode)
|
difflist = form.DiffCode(rcode)
|
||||||
# print(">>>> ", rform.data)
|
# print(">>>> ", rform.data)
|
||||||
|
svxfile = form.survexfile
|
||||||
|
|
||||||
if "revert" in rform.data:
|
if "revert" in rform.data:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if "process" in rform.data:
|
if "process" in rform.data:
|
||||||
if not difflist:
|
if difflist:
|
||||||
|
message = "SAVE FILE FIRST"
|
||||||
|
form.data["code"] = rcode
|
||||||
|
elif svxfile:
|
||||||
logmessage = form.Process()
|
logmessage = form.Process()
|
||||||
if logmessage:
|
if logmessage:
|
||||||
message = f"OUTPUT FROM PROCESSING\n{logmessage}"
|
message = f"OUTPUT FROM PROCESSING\n{logmessage}"
|
||||||
else:
|
else:
|
||||||
message = "SAVE FILE FIRST"
|
message = "SAVE VALID FILE FIRST"
|
||||||
form.data["code"] = rcode
|
form.data["code"] = rcode
|
||||||
if "save" in rform.data:
|
if "save" in rform.data:
|
||||||
if request.user.is_authenticated:
|
if request.user.is_authenticated:
|
||||||
message = form.SaveCode(rcode)
|
message = form.SaveCode(rcode)
|
||||||
@ -293,7 +298,7 @@ def svx(request, survex_file):
|
|||||||
print("Differences: ")
|
print("Differences: ")
|
||||||
form.data["code"] = rcode
|
form.data["code"] = rcode
|
||||||
|
|
||||||
# process(survex_file)
|
# GET or after POST-specific handling
|
||||||
svxfile = form.survexfile # only valid once form.GetDiscCode() called
|
svxfile = form.survexfile # only valid once form.GetDiscCode() called
|
||||||
|
|
||||||
if "code" not in form.data:
|
if "code" not in form.data:
|
||||||
|
Loading…
Reference in New Issue
Block a user