diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-03-01 22:13:35 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-03-01 22:13:35 +0000 |
commit | 4e9c766493150e0bd62d25c1e013ccdf4e117e5f (patch) | |
tree | 3410a34d94364936520e8e7368d37e7be1e133f1 /core/views | |
parent | 2f098b7333be856d042fff4293f2fc3cfb8ca131 (diff) | |
download | troggle-4e9c766493150e0bd62d25c1e013ccdf4e117e5f.tar.gz troggle-4e9c766493150e0bd62d25c1e013ccdf4e117e5f.tar.bz2 troggle-4e9c766493150e0bd62d25c1e013ccdf4e117e5f.zip |
formatting
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/editor_helpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/views/editor_helpers.py b/core/views/editor_helpers.py index 05716b0..0b0d454 100644 --- a/core/views/editor_helpers.py +++ b/core/views/editor_helpers.py @@ -434,9 +434,10 @@ def save_original_in_expofiles(f, year, photographer, host, handbook_directory, will catch photos uploaded directly from phones which otherwise never get recorded properly in original format. - Django does small files <2.5 MB in memory, which is a pain. + Django does small files <2.5 MB in memory, which is a pain, as we can't simply move them. to do: also store a *.url file with the image file saying where it is used in the handbook. + """ if photographer: photographer = photographer.strip().replace(" ","") @@ -478,7 +479,6 @@ def save_original_in_expofiles(f, year, photographer, host, handbook_directory, def write_url_file(targetpath, host, handbook_rel_path, page): # the ".url" is there, just never visible in Windows Explorer. - # FIND AND FIX the correct host for this ! content = f"[InternetShortcut]\nURL={page}\n\n[TroggleImage]\nURL=http://{host}/{handbook_rel_path}" print(content) |