summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-23 20:03:05 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-23 20:03:05 +0100
commit97a9f2aae6b09bbf901f5e17e66d01a89d6d81ed (patch)
tree83a28d39ec6a28c30a5d5a03ffbe7fbaea7e06a3 /core/views/expo.py
parent2f42f488abedd93f06074d9d28582b111777135e (diff)
downloadtroggle-97a9f2aae6b09bbf901f5e17e66d01a89d6d81ed.tar.gz
troggle-97a9f2aae6b09bbf901f5e17e66d01a89d6d81ed.tar.bz2
troggle-97a9f2aae6b09bbf901f5e17e66d01a89d6d81ed.zip
The editing system was accidentally deleting customised sidebar menus. This will stop the happening
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index d2a5d88..cc1b543 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -306,11 +306,10 @@ def editexpopage(request, path):
if m:
filefound = True
preheader, headerargs, head, postheader, bodyargs, body, postbody = m.groups()
- linksmatch = re.match(r'(.*)(<ul\s+id="links">.*)', body, re.DOTALL + re.IGNORECASE)
- if linksmatch:
- body, links = linksmatch.groups()
-# if re.search(r"iso-8859-1", html):
-# body = str(body, "iso-8859-1")
+# linksmatch = re.match(r'(.*)(<ul\s+id="links">.*)', body, re.DOTALL + re.IGNORECASE)
+# if linksmatch:
+# body, links = linksmatch.groups()
+
else:
return HttpResponse(default_head + html + '<h3>HTML Parsing failure:<br>Page could not be parsed into header and body:<br>failure detected in expowebpage in views.expo.py</h3> Please edit this <var>:expoweb:</var> page to be in the expected full HTML format .</body>' )
except IOError: