Please take a look at my WIP branch. Just thought I'd get input on it. All the new Python, HTML and CSS is preliminary work and will probably be changed a decent amount in the near future. The basic idea, though, is that the Settings page will scan the XML file, produce a list of dicts with all info for each connection, then add a new connection if requested and recreate the XML based on the updated list of dicts. Editing connections will work basically the same way.
If you have thoughts on how to display the connections, let me know (ex. table format, boxes, maybe just names that you click on to show the rest of the info?). I'm also thinking we should leave out the passwords, but I kept them in for the time being.
I also want to make a few other changes but was wondering what you thought and considering whether or not they should be in this branch of a separate one later.
Recommended Changes/Improvements
-quotations around all attribute values in HTML - not a requirement in HTML5, but I got used to it because it used to be required and I tend to think it looks cleaner than some values having quotes and some not
-standardize naming conventions: DBloadInputFile could be changed to dbLoadInputFile, for example, or we could always make DB capitalized if you prefer. I personally tend to use the lowercase form.
-add code to ensure that two connections don't have the same "title"
-give each connection a numeric ID to make referring to them in code more straightforward?
Please take a look at my WIP branch. Just thought I'd get input on it. All the new Python, HTML and CSS is preliminary work and will probably be changed a decent amount in the near future. The basic idea, though, is that the Settings page will scan the XML file, produce a list of dicts with all info for each connection, then add a new connection if requested and recreate the XML based on the updated list of dicts. Editing connections will work basically the same way.
If you have thoughts on how to display the connections, let me know (ex. table format, boxes, maybe just names that you click on to show the rest of the info?). I'm also thinking we should leave out the passwords, but I kept them in for the time being.
I also want to make a few other changes but was wondering what you thought and considering whether or not they should be in this branch of a separate one later.
Recommended Changes/Improvements