2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 12:07:09 +00:00

to-do lists updates

This commit is contained in:
2023-02-02 21:50:40 +00:00
parent e0a198bac5
commit e94a24bbd4
9 changed files with 57 additions and 42 deletions

View File

@@ -28,12 +28,8 @@ progress and task list (deprecated as we do not have individual user login).
"""
todo = """
- Use logbookdownloader to convert all older logbooks into the 2005-variant of HTML then we can
get rid of the parsers for older formats.
When we have done all the old logbooks, delete this function and the two templates.
OR invent a new format, e.g. using <article> and <section>?, which is better!
- [Low priority] Fix Login page so that it produces the frontpage or
redirects to the page which produced the login prompt requirement.
"""
@@ -175,18 +171,16 @@ def controlpanel(request):
def exportlogbook(request, year=None, extension=None):
"""Constructs, from the database, a complete HTML formatted logbook
for the current year. Formats available are HTML2005 (others old & broken or not written yet)
for the current year. Formats available are HTML2005. Other formats
have been retired.
There are no images stored in the database, so this is only a tool for a first pass, to be followed by
hand-editing. However links to images work in the HTML text of a logbook entry
NEED TO ADD IN THE MATERIAL WHICH IS NOT IN ANY LBE ! e.g. front matter.
There are no images stored in the database. However links to images work in the HTML text of a logbook entry.
This function is the recipient of the POST action os the export form in the control panel
"""
def lbeKey(lbe):
"""This function goes into a lexicogrpahic sort function"""
"""This function goes into a lexicographic sort function"""
return str(lbe.date)
if not request.method == "POST":