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
|
||||
self.plugin.save_config()
|
||||
modelrow[1] = text
|
||||
|
||||
|
||||
def on_advanced_configuration_window_destroy(self, widget):
|
||||
del self.plugin.windows['advanced_config']
|
||||
|
||||
|
|
|
@ -253,11 +253,11 @@ class Config:
|
|||
elif ival == None:
|
||||
return None
|
||||
return False
|
||||
return None
|
||||
return None
|
||||
|
||||
def is_valid_string(self, val):
|
||||
return val
|
||||
|
||||
|
||||
def is_valid(self, type, val):
|
||||
if not type:
|
||||
return None
|
||||
|
@ -275,16 +275,16 @@ class Config:
|
|||
|
||||
def set(self, optname, value):
|
||||
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
|
||||
opt = self.__options[optname]
|
||||
value = self.is_valid(opt[OPT_TYPE], value)
|
||||
if value == None:
|
||||
return -1
|
||||
|
||||
|
||||
opt[OPT_VAL] = value
|
||||
return 0
|
||||
|
||||
|
||||
def get(self, optname = None):
|
||||
if not optname:
|
||||
return self.__options.keys()
|
||||
|
@ -327,7 +327,7 @@ class Config:
|
|||
return -1
|
||||
subobj[OPT_VAL] = value
|
||||
return 0
|
||||
|
||||
|
||||
def get_per(self, optname, key = None, subname = None): # per_group_of_option
|
||||
if not self.__options_per_key.has_key(optname):
|
||||
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