Return a bytestream containing XML for a default settings part.
(cls)
| 43 | |
| 44 | @classmethod |
| 45 | def _default_settings_xml(cls): |
| 46 | """Return a bytestream containing XML for a default settings part.""" |
| 47 | path = os.path.join(os.path.split(__file__)[0], "..", "templates", "default-settings.xml") |
| 48 | with open(path, "rb") as f: |
| 49 | xml_bytes = f.read() |
| 50 | return xml_bytes |