Open blinklet opened 4 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.
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