summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-04-20 23:18:05 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-04-20 23:18:05 +0300
commit9ead6b00f9cb680e93b5d0526fed56b54dd536fd (patch)
tree23227d7496dba2b16eb1262b141633339cc39959
parent00eb978f5fb043b6fe50e5a5988fde3ec4d3c488 (diff)
downloadtroggle-9ead6b00f9cb680e93b5d0526fed56b54dd536fd.tar.gz
troggle-9ead6b00f9cb680e93b5d0526fed56b54dd536fd.tar.bz2
troggle-9ead6b00f9cb680e93b5d0526fed56b54dd536fd.zip
warning text for broken table in page, pending fix
-rw-r--r--core/views/uploads.py5
-rw-r--r--templates/notablepersons.html1
2 files changed, 4 insertions, 2 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index 1d0a510..35166c6 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -40,12 +40,13 @@ todo = '''
- Write equivalent GPX upload form system, similar to scanupload() but in expofiles/gpslogs/
Need to validate it as being a valid GPX file using an XML parser, not a dubious script or hack
-- Validate Tunnel & Therion files using an XML parser in dwgupload()
+- Validate Tunnel & Therion files using an XML parser in dwgupload(). Though Julian says tunnel is only mostly correct XML
- Validate image files using a magic recogniser in scanupload() https://pypi.org/project/reportlab/ or
https://stackoverflow.com/questions/889333/how-to-check-if-a-file-is-a-valid-image-file
- Enable folder creation in dwguploads or as a separate form
+
- Register uploaded filenames in the Django db without needing to wait for a reset & bulk file import
'''
@@ -467,7 +468,7 @@ def dwgupload(request, folder=None, gitdisable='no'):
if multiple:
for f in multiple:
if dwgvalid(f.name):
- try: # crashes in Django os.chmod call if on WSL, but does save file!
+ try: # crashes in Django os.chmod call if on WSL without metadata drvfs, but does save file!
saved_filename = fs.save(f.name, content=f)
except:
print(f'\n !! Permissions failure ?! on attempting to save file {f.name}')
diff --git a/templates/notablepersons.html b/templates/notablepersons.html
index 6f80c8e..99dce30 100644
--- a/templates/notablepersons.html
+++ b/templates/notablepersons.html
@@ -4,6 +4,7 @@
{% block content %}
<h2>Notably Recent Expoers</h2>
+<p>This table is just for fun. And it's apparently not working (boo) in April 2022.
<table class="searchable">
<tr><th>Person</th><th>First</th><th>Last</th><th>Recency</th></tr>
{% for person in notablepersons|dictsortreversed:"notability" %}