2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 05:57:18 +00:00

Editor field & cookie working for survex online edits

This commit is contained in:
2024-12-27 22:57:34 +00:00
parent 60d24dc48e
commit 8dbad16ece
4 changed files with 55 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ from django.views.decorators.csrf import ensure_csrf_cookie
import troggle.core.views.caves
import troggle.settings as settings
from troggle.core.models.caves import Cave
from troggle.core.utils import WriteAndCommitError, current_expo, git_string, write_and_commit
from troggle.core.utils import COOKIE_MAX_AGE, WriteAndCommitError, current_expo, git_string, write_and_commit
from troggle.core.views.editor_helpers import HTMLarea
from troggle.core.views.uploads import edittxtpage
@@ -26,7 +26,7 @@ Then it was incorporated into troggle directly, rather than being an unnecessary
This is a succession of hacks and needs to be redisgned and refactored.
"""
COOKIE_MAX_AGE = 12*60*60 # seconds
default_head = """<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CUCC Expedition - index</title>