diff --git a/core/views/expo.py b/core/views/expo.py index fadc6ed..4902502 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -16,12 +16,15 @@ import troggle.settings as settings from troggle.core.models.caves import Cave from troggle.core.utils import WriteAndCommitError, write_and_commit from troggle.core.views.editor_helpers import HTMLarea +from troggle.core.views.uploads import edittxtpage from .auth import login_required_if_public """Formerly a separate package called 'flatpages' written by Martin Green 2011. This was NOT django.contrib.flatpages which stores HTML in the database, so the name was changed to expopages. Then it was incorporated into troggle directly, rather than being an unnecessary external package. + +This is a succession of hacks and needs to be redisgned and refactored. """ default_head = """
@@ -356,7 +359,7 @@ def getmimetype(path): return "application/zip" return "" - + @login_required_if_public @ensure_csrf_cookie def editexpopage(request, path): @@ -377,6 +380,12 @@ def editexpopage(request, path): + "