summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-08-01 16:05:17 +0200
committerMartin Green <martin.speleo@gmail.com>2022-08-01 16:05:17 +0200
commitc1aaf0788524e69872162362b73504d89737c55d (patch)
tree25246b317ca209f236440b5d1a70a19baa786d2c /urls.py
parentf491264b9ecb9724be99419bbc5331f9ca492bac (diff)
parenteed35d01a86a365d464a6b1584d12b9cb40652f6 (diff)
downloadtroggle-c1aaf0788524e69872162362b73504d89737c55d.tar.gz
troggle-c1aaf0788524e69872162362b73504d89737c55d.tar.bz2
troggle-c1aaf0788524e69872162362b73504d89737c55d.zip
Merge branch 'python3-new' of ssh://expo.survex.com/home/expo/troggle into python3-new
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/urls.py b/urls.py
index d89912f..f46c3c7 100644
--- a/urls.py
+++ b/urls.py
@@ -8,7 +8,7 @@ from django.contrib import auth
from django.urls import path, reverse, resolve
from troggle.core.views import statistics, survex
-from troggle.core.views.scans import scansingle, allwallets, cavewallets
+from troggle.core.views.scans import scansingle, allscans, cavewallets, walletslistyear, walletslistperson
from troggle.core.views.drawings import dwgallfiles, dwgfilesingle
from troggle.core.views.uploads import dwgupload, scanupload, photoupload
from troggle.core.views.other import troggle404, frontpage, todos, controlpanel, frontpage
@@ -168,13 +168,18 @@ trogglepatterns = [
path('survexfile/<path:survex_cave>', survex.survexcavesingle, name="survexcavessingle"),
-# The survey scans in the wallets. This short-cuts SCANS_URL which is not actually used anywhere!
- path('survey_scans/', allwallets, name="allwallets"),
- path('survey_scans/<path:path>/', scanupload, name="singlewallet"), # replaced singlewallet()
- path('survey_scans/<path:path>/<file>', scansingle, name="scansingle"), # works, but html href goes direct to /expofiles/ too
- re_path(r'^cave/scans/(?P<cave_id>[^/]+)$', cavewallets, name="cavewallets"), # like allwallets, but for just one cave
+# The survey scans in the wallets. This short-cuts SCANS_URL which is not used anymore and is defunct
+ path('survey_scans/', allscans, name="allscans"), # all the scans in all wallets
+ path('survey_scans/<path:path>/', scanupload, name="singlewallet"), # replaced singlewallet()
+ path('survey_scans/<path:path>/<file>', scansingle, name="scansingle"), # works, but html href goes direct to /expofiles/ too
+ path('cave/scans/<slug:caveid>', cavewallets, name="cavewallets"), # like allscans, but for just one cave
+
+# The data about the wallets themselves, not the scans inside tehm
+ path('wallets/year/<int:year>', walletslistyear, name="walletslistyear"), # wallets that are for a specific year, as an integer '1985'
+ re_path('wallets/person/(?P<first_name>[A-Z]*[a-z\-\'&;]*)[^a-zA-Z]*(?P<last_name>[a-z\-\']*[^a-zA-Z]*[\-]*[A-Z]*[a-zA-Z\-&;]*)/?', walletslistperson, name="walletslistperson"),
+
-# The tunnel and therion drawings files pages
+# The tunnel and therion drawings files pageswalletslistcave
path('dwgfiles', dwgallfiles, name="dwgallfiles"),
path('dwgfiles/', dwgallfiles, name="dwgallfiles"),
path('dwgdataraw/<path:path>', dwgfilesingle, name="dwgfilesingle"),