remove excess prints

This commit is contained in:
Philip Sargent 2023-08-02 15:48:36 +03:00
parent efa40b47ca
commit c76c09fced

View File

@ -182,8 +182,10 @@ def expowebpage(request, expowebpath, path):
m = re.search(r"noedit", head, re.DOTALL + re.IGNORECASE) m = re.search(r"noedit", head, re.DOTALL + re.IGNORECASE)
if m: if m:
editable = False editable = False
# print(f"NOEDIT set")
else: else:
editable = os.access(expowebpath / path, os.W_OK) # are file permissions writeable? editable = os.access(expowebpath / path, os.W_OK) # are file permissions writeable?
# print(f"EDITABLE ? {editable}\n{head}")
has_menu = False has_menu = False
menumatch = re.match(r'(.*)<ul id="links">', body, re.DOTALL + re.IGNORECASE) menumatch = re.match(r'(.*)<ul id="links">', body, re.DOTALL + re.IGNORECASE)
if menumatch: if menumatch: