1 |
xabbu |
1.1 |
import fraggleParserXML |
2 |
|
|
|
3 |
xabbu |
1.2 |
def create(parent): |
4 |
|
|
return fraggleCtlPreferences(parent) |
5 |
|
|
|
6 |
xabbu |
1.1 |
class fraggleCtlPreferences: |
7 |
|
|
|
8 |
xabbu |
1.2 |
def __init_fraggle_xml__(self): |
9 |
|
|
self.fraggleXML = fraggleParserXML.create(self) |
10 |
xabbu |
1.1 |
|
11 |
|
|
|
12 |
|
|
def __init__(self,parent): |
13 |
|
|
self.__init_fraggle_xml__() |
14 |
|
|
|
15 |
|
|
|
16 |
|
|
#def savePrefs(): |
17 |
|
|
|
18 |
|
|
|
19 |
xabbu |
1.2 |
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") |