2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 03:47:02 +00:00

comments edited

This commit is contained in:
2025-10-12 20:23:50 +03:00
parent d25a2154af
commit 6ccd16a508

View File

@@ -44,7 +44,8 @@ todo = """
https://stackoverflow.com/questions/889333/how-to-check-if-a-file-is-a-valid-image-file
- Validate Tunnel & Therion files using an XML parser in dwgupload(). Though Julian says
tunnel is only mostly correct XML, and it does fail at least one XML parser.
tunnel is only mostly correct XML, and it does fail at least one XML parser.
Many tunnel files have non-ascii bytes in them!
- parse the uploaded drawing file for links to wallets and scan files as done
in parsers/drawings.py
@@ -75,12 +76,15 @@ class WalletFilesForm(forms.Form): # not a model-form, just a form-form
class PhotographerForm(forms.Form): # not a model-form, just a form-form
"""not a git repo so we do not need an "editor" to assign blame to"""
photographer = forms.CharField(strip=True)
class GPXuploadForm(forms.Form): # not a model-form, just a form-form
"""not a git repo so we do not need an "editor" to assign blame to"""
prospector = forms.CharField(strip=True)
class gpxfixForm(forms.Form): # not a model-form, just a form-form
"""not a git repo so we do not need an "editor" to assign blame to"""
prospector = forms.CharField(strip=True)
areacode = forms.CharField(strip=True)
station = forms.CharField(strip=True)
@@ -88,12 +92,13 @@ class gpxfixForm(forms.Form): # not a model-form, just a form-form
class FilesRenameForm(forms.Form): # not a model-form, just a form-form
"""Used only for renaming photos in /expofiles/photos/
which is not a git repo
not a git repo so we do not need an "editor" to assign blame to
"""
uploadfiles = forms.FileField()
renameto = forms.CharField(strip=True, required=False)
class ExpofileRenameForm(forms.Form): # not a model-form, just a form-form
"""not a git repo so we do not need an "editor" to assign blame to"""
renameto = forms.CharField(strip=True, required=False)