2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 18:37:11 +00:00

produce .url file in same folder as orig. photo in expofiles

This commit is contained in:
2025-02-22 10:11:24 +02:00
parent 8a95b0609d
commit e95cff5818
3 changed files with 14 additions and 19 deletions

View File

@@ -18,9 +18,6 @@ from troggle.core.utils import (
WriteAndCommitError,
current_expo,
get_editor,
# get_cookie,
# git_string,
# get_git_string,
write_and_commit,
is_identified_user
)
@@ -273,6 +270,9 @@ def expowebpage(request, expowebpath, path):
def mediapage(request, subpath=None, doc_root=None):
"""This is for special prefix paths /photos/ /site_media/, /static/ etc.
as defined in urls.py . If given a directory, gives a failure page.
If running on the server, Apache intercepts these so this code is not used there,
but it is vital for the devserver.
"""
#print("mediapath", subpath)
if doc_root is not None:
@@ -448,10 +448,6 @@ 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()
else:
return HttpResponse(
default_head