Commit ff72fe0d authored by Ad Schellevis's avatar Ad Schellevis

(Captiveportal, new) add some explanation about why we link to the config.xml in this case.

We try to avoid reading directly from config.xml as much as possible, because most applications use their own config type and we rather render our data to that format.
parent d385237d
......@@ -45,7 +45,9 @@ with zipfile.ZipFile(output_data, mode='w', compression=zipfile.ZIP_DEFLATED) as
# overlay user template data
user_filenames = list()
if len(sys.argv) > 1:
# search for user template, using fileid
# Search for user template, using fileid
# In this case, we must use the config.xml to retrieve the latest content.
# When using the generated config, the user experience will be a bit odd (old content after upload)
cnf = OPNSenseConfig()
template_content = cnf.get_template(sys.argv[1])
if template_content is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment