summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRad <radost.waszkiewicz@gmail.com>2019-02-25 21:02:30 +0000
committerRad <radost.waszkiewicz@gmail.com>2019-02-25 21:02:30 +0000
commit71d171985082403b69f920bfc1b6b1a091e73e11 (patch)
tree354e496a58a19ac4fefb49c7012ae85b5404de99 /core
parent7c2d336bd7d8af6a68e5dcc66c8f13bd6e05dac8 (diff)
parentbebbad24480f564a8c269f8e73dbeaef1747f080 (diff)
downloadtroggle-71d171985082403b69f920bfc1b6b1a091e73e11.tar.gz
troggle-71d171985082403b69f920bfc1b6b1a091e73e11.tar.bz2
troggle-71d171985082403b69f920bfc1b6b1a091e73e11.zip
merge
Diffstat (limited to 'core')
-rw-r--r--core/views_survex.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/views_survex.py b/core/views_survex.py
index e252095..9fc334a 100644
--- a/core/views_survex.py
+++ b/core/views_survex.py
@@ -84,9 +84,9 @@ class SvxForm(forms.Form):
fname = settings.SURVEX_DATA + self.data['filename'] + ".svx"
if not os.path.isfile(fname):
# only save if appears valid
- if re.search("\[|\]", rcode):
+ if re.search(r"\[|\]", rcode):
return "Error: clean up all []s from the text"
- mbeginend = re.search("(?s)\*begin\s+(\w+).*?\*end\s+(\w+)", rcode)
+ mbeginend = re.search(r"(?s)\*begin\s+(\w+).*?\*end\s+(\w+)", rcode)
if not mbeginend:
return "Error: no begin/end block here"
if mbeginend.group(1) != mbeginend.group(2):
@@ -280,7 +280,7 @@ def survexcaveslist(request):
survdirobj = [ ]
for lsubsvx in subsvx:
- survdirobj.append(("caves/"+cavedir+"/"+lsubsvx, lsubsvx))
+ survdirobj.append(("caves-1623/"+cavedir+"/"+lsubsvx, lsubsvx))
# caves with subdirectories
if subdirs:
@@ -290,7 +290,7 @@ def survexcaveslist(request):
assert not dsubdirs
lsurvdirobj = [ ]
for lsubsvx in dsubsvx:
- lsurvdirobj.append(("caves/"+cavedir+"/"+subdir+"/"+lsubsvx, lsubsvx))
+ lsurvdirobj.append(("caves-1623/"+cavedir+"/"+subdir+"/"+lsubsvx, lsubsvx))
subsurvdirs.append((lsurvdirobj[0], lsurvdirobj[1:]))
subdircaves.append((cavedir, (survdirobj[0], survdirobj[1:]), subsurvdirs))