diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-12-28 23:49:26 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-12-28 23:49:26 +0000 |
commit | dac3e6e2889b1d194069c1b8d1eb98fea6d1f7eb (patch) | |
tree | 8a6f48048fdd5939b940e5d4d09b3051ae2fea07 /core/views/expo.py | |
parent | e7444d20a4759cc3b1a9232c5129499ba5e1abfc (diff) | |
download | troggle-dac3e6e2889b1d194069c1b8d1eb98fea6d1f7eb.tar.gz troggle-dac3e6e2889b1d194069c1b8d1eb98fea6d1f7eb.tar.bz2 troggle-dac3e6e2889b1d194069c1b8d1eb98fea6d1f7eb.zip |
Entrances now do cookie / git author thing. + tidyup.
Diffstat (limited to 'core/views/expo.py')
-rw-r--r-- | core/views/expo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index 848fe21..3432ac3 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -457,6 +457,7 @@ def editexpopage(request, path): pageform = ExpoPageForm(request.POST) # A form bound to the POST data if pageform.is_valid(): # Form valid therefore write file editor = pageform.cleaned_data["who_are_you"] + editor = git_string(editor) # print("### \n", str(pageform)[0:300]) # print("### \n csrfmiddlewaretoken: ",request.POST['csrfmiddlewaretoken']) if filefound: @@ -489,6 +490,7 @@ def editexpopage(request, path): try: change_message = pageform.cleaned_data["change_message"] editor = pageform.cleaned_data["who_are_you"] + editor = git_string(editor) write_and_commit([(filepath, result, "utf-8")], f"{change_message} - online edit of {path}", editor) except WriteAndCommitError as e: return render(request, "errors/generic.html", {"message": e.message}) |