1 |
import fraggleParserXML |
2 |
|
3 |
def create(parent): |
4 |
return fraggleCtlPreferences(parent) |
5 |
|
6 |
class fraggleCtlPreferences: |
7 |
|
8 |
def __init_fraggle_xml__(self): |
9 |
self.fraggleXML = fraggleParserXML.create(self) |
10 |
|
11 |
|
12 |
def __init__(self,parent): |
13 |
self.__init_fraggle_xml__() |
14 |
|
15 |
|
16 |
#def savePrefs(): |
17 |
|
18 |
|
19 |
def setConfig(self,username,password,url,retrieval): |
20 |
self.configList = {'username': username,'password': password,'url': url,'retrieval': retrieval} |
21 |
|
22 |
def getConfig(self): |
23 |
return self.configList |
24 |
|
25 |
def saveConfig(self): |
26 |
self.fraggleXML.marshalXML(self.configList,"/home/xabbu/test.xml") |