forked from expo/troggle
Add date of update to the generated html file
This commit is contained in:
@@ -301,6 +301,7 @@ def caveEntrance(request, slug):
|
||||
def edit_cave(request, path = "", slug=None):
|
||||
'''This is the form that edits all the cave data and writes out an XML file in the :expoweb: repo folder
|
||||
The format for the file being saved is in templates/dataformat/cave.xml
|
||||
Warning. This uses Django deep magic.
|
||||
|
||||
It does save the data into into the database directly, not by parsing the file.
|
||||
'''
|
||||
@@ -343,6 +344,7 @@ def edit_cave(request, path = "", slug=None):
|
||||
ceinst.save()
|
||||
try:
|
||||
cave_file = cave.file_output()
|
||||
print(cave_file)
|
||||
write_and_commit([cave_file], "Online edit of %s" % cave)
|
||||
# leave other exceptions unhandled so that they bubble up to user interface
|
||||
except PermissionError:
|
||||
@@ -373,6 +375,7 @@ def edit_entrance(request, path = "", caveslug=None, slug=None):
|
||||
'''This is the form that edits the entrance data for a single entrance and writes out
|
||||
an XML file in the :expoweb: repo folder
|
||||
The format for the file being saved is in templates/dataformat/entrance.xml
|
||||
Warning. This uses Django deep magic.
|
||||
|
||||
It does save the data into into the database directly, not by parsing the file.
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user