12 |
self.fraggleXML = fraggleParserXML.create(self) |
self.fraggleXML = fraggleParserXML.create(self) |
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
def __init__(self,parent): |
def __init__(self,parent): |
18 |
self.__init_fraggle_xml__() |
self.__init_fraggle_xml__() |
19 |
|
|
27 |
def getConfig(self): |
def getConfig(self): |
28 |
return self.configList |
return self.configList |
29 |
|
|
30 |
|
|
31 |
|
def loadConfig(self,inputLocation): |
32 |
|
self.configList = self.fraggleXML.unmarshalXML(inputLocation) |
33 |
|
|
34 |
|
|
35 |
def saveConfig(self): |
def saveConfig(self): |
|
#self.fraggleXML.marshalXML(self.configList,"/home/xabbu/test.xml") |
|
36 |
engine = FraggleEngine() |
engine = FraggleEngine() |
37 |
prefsfile = os.path.join(engine.getDefaultDir(), 'prefs.xml') |
prefsfile = os.path.join(engine.getDefaultDir(), 'prefs.xml') |
38 |
self.fraggleXML.marshalXML(self.configList, prefsfile) |
self.fraggleXML.marshalXML(self.configList, prefsfile) |
39 |
|
|
40 |
|
|