nothing except a revert for an accidental commit of a file
This commit is contained in:
parent
1dc26ece9b
commit
f9bbb7322b
|
@ -92,7 +92,7 @@ class Advanced_configuration_window:
|
||||||
return
|
return
|
||||||
self.plugin.save_config()
|
self.plugin.save_config()
|
||||||
modelrow[1] = text
|
modelrow[1] = text
|
||||||
|
|
||||||
def on_advanced_configuration_window_destroy(self, widget):
|
def on_advanced_configuration_window_destroy(self, widget):
|
||||||
del self.plugin.windows['advanced_config']
|
del self.plugin.windows['advanced_config']
|
||||||
|
|
||||||
|
|
|
@ -253,11 +253,11 @@ class Config:
|
||||||
elif ival == None:
|
elif ival == None:
|
||||||
return None
|
return None
|
||||||
return False
|
return False
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def is_valid_string(self, val):
|
def is_valid_string(self, val):
|
||||||
return val
|
return val
|
||||||
|
|
||||||
def is_valid(self, type, val):
|
def is_valid(self, type, val):
|
||||||
if not type:
|
if not type:
|
||||||
return None
|
return None
|
||||||
|
@ -275,16 +275,16 @@ class Config:
|
||||||
|
|
||||||
def set(self, optname, value):
|
def set(self, optname, value):
|
||||||
if not self.__options.has_key(optname):
|
if not self.__options.has_key(optname):
|
||||||
# print 'error: option %s doesn\'t exist' % (optname)
|
# print 'error: option %s does not exist' % optname
|
||||||
return -1
|
return -1
|
||||||
opt = self.__options[optname]
|
opt = self.__options[optname]
|
||||||
value = self.is_valid(opt[OPT_TYPE], value)
|
value = self.is_valid(opt[OPT_TYPE], value)
|
||||||
if value == None:
|
if value == None:
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
opt[OPT_VAL] = value
|
opt[OPT_VAL] = value
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def get(self, optname = None):
|
def get(self, optname = None):
|
||||||
if not optname:
|
if not optname:
|
||||||
return self.__options.keys()
|
return self.__options.keys()
|
||||||
|
@ -327,7 +327,7 @@ class Config:
|
||||||
return -1
|
return -1
|
||||||
subobj[OPT_VAL] = value
|
subobj[OPT_VAL] = value
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def get_per(self, optname, key = None, subname = None): # per_group_of_option
|
def get_per(self, optname, key = None, subname = None): # per_group_of_option
|
||||||
if not self.__options_per_key.has_key(optname):
|
if not self.__options_per_key.has_key(optname):
|
||||||
return None
|
return None
|
||||||
|
|
1647
src/roster_window.py
1647
src/roster_window.py
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue