mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-03-01 03:01:41 +00:00
stop print msg
This commit is contained in:
@@ -339,7 +339,7 @@ def expopage(request, path):
|
||||
return HttpResponse(content=content, content_type=content_type)
|
||||
except IOError:
|
||||
message = f" ! - 404 '{path=}' {request=}"
|
||||
print(message)
|
||||
#print(message)
|
||||
DataIssue.objects.create(parser="view404", message=message)
|
||||
|
||||
return render(request, "pagenotfound.html", {"path": path}, status=404)
|
||||
|
||||
@@ -245,12 +245,10 @@ def svx(request, survex_file):
|
||||
"""
|
||||
warning = False
|
||||
|
||||
print(f"svx(): {survex_file=}")
|
||||
if survex_file.lower().endswith(".svx"):
|
||||
#cope with ".svx.svx" bollox
|
||||
survex_file = survex_file[:-4]
|
||||
print(survex_file)
|
||||
|
||||
|
||||
# get the basic data from the file given in the URL
|
||||
dirname = os.path.split(survex_file)[0] # replace with proper pathlib function..
|
||||
dirname += "/"
|
||||
@@ -315,7 +313,8 @@ def svx(request, survex_file):
|
||||
# GET, also fall-through after POST-specific handling
|
||||
|
||||
if svxfile := get_survexfile(survex_file):
|
||||
print(f"svx(): a real SurvexFile object {svxfile=} {svxfile.id=}")
|
||||
pass
|
||||
# print(f"svx(): a real SurvexFile object {svxfile=} {svxfile.id=}")
|
||||
|
||||
if "code" not in form.data:
|
||||
form.data["code"] = form.GetDiscCode()
|
||||
@@ -349,7 +348,7 @@ def svx(request, survex_file):
|
||||
svxblocksall = []
|
||||
else:
|
||||
svxfile = survex_file
|
||||
print(f"svx(): NOT a real SurvexFile object '{svxfile=}'")
|
||||
# print(f"svx(): NOT a real SurvexFile object '{svxfile=}'")
|
||||
|
||||
svxblocks = []
|
||||
svxblocksall = []
|
||||
|
||||
Reference in New Issue
Block a user