blinklet / usermapper

Script that creates default authentication XML file for Guacamole
GNU General Public License v3.0
0 stars 0 forks source link

Use a library to build the XML output file #5

Open blinklet opened 4 years ago

blinklet commented 4 years ago

Instead of hard-coding the XML tags, create a more flexible and standard way of writing the xml file such as dict2xml, Python's the xml.etree.ElementTree module, xmler, or other

blinklet commented 3 years ago

To improve efficiency, create the contents of the user-mapping.xml as a list in memory and return it to the flask app. The Flask app will save it to temporary storage. This decouples the usermapper.mapperdata module from the filesystem.