@@ -0,0 +1,1265 @@
+#!/usr/bin/python3.4%0A# -*-coding:Utf-8 -*%0A'''module to manage Engine Settings'''%0Aimport xml.etree.ElementTree as xmlMod%0Aimport os%0A%0Aclass Preset:%0A%09'''class to manage Engine Settings'''%0A%09%0A%09%0A%09def __init__(self, xml= None):%0A%09%09'''initialize Engine Settings with default value or values extracted from an xml object'''%0A%09%09if xml is None:%0A%09%09%09self.defaultInit()%0A%09%09else:%0A%09%09%09self.fromXml(xml)%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09def defaultInit(self):%0A%09%09'''initialize Engine Settings with default value'''%0A%09%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09def fromXml(self, xml):%0A%09%09'''initialize Engine Settings with values extracted from an xml object'''%0A%09%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09def toXml(self):%0A%09%09'''export Engine Settings into xml syntaxed string'''%0A%09%09txt = '%3Cengine /%3E%5Cn'%0A%09%09%0A%09%09return txt%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09def see(self, log, versions):%0A%09%09'''menu to explore and edit Engine Settings settings'''%0A%09%09change = False%0A%09%09log.menuIn('Engine')%0A%09%09%0A%09%09while True:%0A%09%09%09os.system('clear')%0A%09%09%09log.print()%0A%09%09%09%0A%09%09%09self.print()%0A%09%09%09%0A%09%09%09print('''%5Cn%5Cn        Menu :%0A0- Save and quit%0A%0A''')%0A%09%09%09%0A%09%09%09choice = input('Action?').strip().lower()%0A%09%09%09%0A%09%09%09if choice in %5B'0', 'q', 'quit', 'cancel'%5D:%0A%09%09%09%09log.menuOut()%0A%09%09%09%09return change%0A%09%09%09else:%0A%09%09%09%09log.error('Unvalid menu choice', False)%0A%09%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09def print(self):%0A%09%09'''a method to print Engine Settings'''%0A%09%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A%09%0A

create a class to manage engine settings