Skip to content

Add infobox file reader and dynamic SIP access content#64

Open
a2luca wants to merge 2 commits intodect-e:mainfrom
a2luca:main
Open

Add infobox file reader and dynamic SIP access content#64
a2luca wants to merge 2 commits intodect-e:mainfrom
a2luca:main

Conversation

@a2luca
Copy link
Copy Markdown
Contributor

@a2luca a2luca commented May 7, 2026

Here is my proposal for a file reader which displays the info box for sip infos with the contents of infobox.html in the instance path if the file exists.
With this change one can put infos into the info box without modifying the source code.

If you have better ideas for making this dynamic, let's discuss them here.

Comment thread services/dect-wip/app.py
infobox_file = os.path.join(app.instance_path, "infobox.html")

infobox_content = None
if os.path.exists(infobox_file):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would suggest to have the file always present and check for contents.
It seams like a #needtoknow that you can create this file.
But mybe a infobox.html.sample would to the job too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants