mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-12-01 06:11:51 +00:00
fixes and bugfix
This commit is contained in:
parent
a63275f913
commit
3c62defdfd
@ -46,6 +46,7 @@ def todos(request, module):
|
|||||||
from troggle.core.views.drawings import todo as viewdrawings
|
from troggle.core.views.drawings import todo as viewdrawings
|
||||||
from troggle.core.views.logbooks import todo as viewlogbooks
|
from troggle.core.views.logbooks import todo as viewlogbooks
|
||||||
from troggle.core.views.other import todo as viewother
|
from troggle.core.views.other import todo as viewother
|
||||||
|
from troggle.core.views.scans import todo as viewscans
|
||||||
from troggle.core.views.survex import todo as viewsurvex
|
from troggle.core.views.survex import todo as viewsurvex
|
||||||
from troggle.core.views.uploads import todo as viewuploads
|
from troggle.core.views.uploads import todo as viewuploads
|
||||||
from troggle.core.views.wallets_edit import todo as viewwallets_edit
|
from troggle.core.views.wallets_edit import todo as viewwallets_edit
|
||||||
@ -66,6 +67,7 @@ def todos(request, module):
|
|||||||
"views/drawings": viewdrawings,
|
"views/drawings": viewdrawings,
|
||||||
"views/logbooks": viewlogbooks,
|
"views/logbooks": viewlogbooks,
|
||||||
"views/other": todo,
|
"views/other": todo,
|
||||||
|
"views/scans": viewscans,
|
||||||
"views/survex": viewsurvex,
|
"views/survex": viewsurvex,
|
||||||
"views/uploads": viewuploads,
|
"views/uploads": viewuploads,
|
||||||
"views/wallets_edit": viewwallets_edit,
|
"views/wallets_edit": viewwallets_edit,
|
||||||
|
@ -16,22 +16,18 @@ from troggle.parsers.people import GetPersonExpeditionNameLookup
|
|||||||
from troggle.parsers.survex import set_walletdate
|
from troggle.parsers.survex import set_walletdate
|
||||||
|
|
||||||
|
|
||||||
"""one of these views serves files as binary blobs, and simply set the mime type based on the file extension,
|
"""
|
||||||
|
Note that caveifywallet() etc do NOT save the object to the db. They are ephemeral, just for the page rendering of the
|
||||||
|
manywallets dict.
|
||||||
|
"""
|
||||||
|
|
||||||
|
todo="""
|
||||||
|
- one of these views serves files as binary blobs, and simply set the mime type based on the file extension,
|
||||||
as does the urls.py dispatcher which sends them here. Here they should actually have the filetype checked
|
as does the urls.py dispatcher which sends them here. Here they should actually have the filetype checked
|
||||||
by looking inside the file before being served.
|
by looking inside the file before being served.
|
||||||
|
|
||||||
need to check if inavlid query string is invalid, or produces multiple replies
|
- need to check if inavlid query string is invalid, or produces multiple replies
|
||||||
and render a user-friendly error page.
|
and render a user-friendly error page.
|
||||||
|
|
||||||
Note that caveifywallet() etc do NOT save the object to the db. They are ephemeral, just for the page rendering of the
|
|
||||||
manywallets dict.
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
-- add the participants on an explicit wallet list to .slugpeople so that they get proper URL-linked
|
|
||||||
on the per-person wallet report, and do the same thing for per-cave and per-year wallet reports
|
|
||||||
|
|
||||||
add this file in to the todo list thinggy.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def fix_manywallets(many):
|
def fix_manywallets(many):
|
||||||
|
@ -671,7 +671,7 @@ def read_cave(filename, cave=None):
|
|||||||
#raise
|
#raise
|
||||||
# This fails to do an update! It just crashes.. to be fixed
|
# This fails to do an update! It just crashes.. to be fixed
|
||||||
message = f" ! CaveSlug update/create failure : {slug}, skipping file cave_data/{context} with exception\nException: {ex.__class__}"
|
message = f" ! CaveSlug update/create failure : {slug}, skipping file cave_data/{context} with exception\nException: {ex.__class__}"
|
||||||
DataIssue.objects.create(parser="caves", message=message, url=f"{cave.url()}_edit/")
|
DataIssue.objects.create(parser="caves", message=message, url=f"{cave.url}_edit/")
|
||||||
print(message)
|
print(message)
|
||||||
primary = False
|
primary = False
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ entrances
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
todo = """
|
todo = """
|
||||||
- Pending a complete revision of how we handle GPS coordinates of entrances.
|
-
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class MapLocations(object):
|
class MapLocations(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user