Skip to content
Snippets Groups Projects
Commit 1be1f99a authored by Frank Duncan's avatar Frank Duncan
Browse files

Add raw option to TOC uploads

parent 08f001a4
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,11 @@ class Toc:
the template to be handled by torque with rendering the Toc"""
return {}
def raw(self):
"""Returns whether this is a raw html table of contents, or an
mwiki one"""
return False
class TocProposalFormatter:
"""Base class for formatters for how TOC lists are built. For instance,
......
......@@ -73,6 +73,7 @@ class WikiSession:
"format": "json",
"sheet_name": self.competition_name,
"toc_name": toc.name,
"raw_toc": ("true" if toc.raw() else None)
},
{"template": toc.template_file(), "json": json.dumps(toc.grouped_data())},
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment