More doc-string refactoring
This commit is contained in:
parent
0ee0ade03a
commit
f7b7e59935
1 changed files with 7 additions and 3 deletions
|
@ -43,7 +43,9 @@ C_TYPE
|
||||||
GTKGUI_GLADE = 'manage_accounts_window.glade'
|
GTKGUI_GLADE = 'manage_accounts_window.glade'
|
||||||
|
|
||||||
def rate_limit(rate):
|
def rate_limit(rate):
|
||||||
''' call func at most *rate* times per second '''
|
"""
|
||||||
|
Call func at most *rate* times per second
|
||||||
|
"""
|
||||||
def decorator(func):
|
def decorator(func):
|
||||||
timeout = [None]
|
timeout = [None]
|
||||||
def f(*args, **kwargs):
|
def f(*args, **kwargs):
|
||||||
|
@ -131,8 +133,10 @@ class AdvancedConfigurationWindow(object):
|
||||||
gajim.interface.instances['advanced_config'] = self
|
gajim.interface.instances['advanced_config'] = self
|
||||||
|
|
||||||
def cb_value_column_data(self, col, cell, model, iter_):
|
def cb_value_column_data(self, col, cell, model, iter_):
|
||||||
'''check if it's boolen or holds password stuff and if yes
|
"""
|
||||||
make the cellrenderertext not editable else it's editable'''
|
Check if it's boolen or holds password stuff and if yes make the
|
||||||
|
cellrenderertext not editable, else - it's editable
|
||||||
|
"""
|
||||||
optname = model[iter_][C_PREFNAME]
|
optname = model[iter_][C_PREFNAME]
|
||||||
opttype = model[iter_][C_TYPE]
|
opttype = model[iter_][C_TYPE]
|
||||||
if opttype == self.types['boolean'] or optname == 'password':
|
if opttype == self.types['boolean'] or optname == 'password':
|
||||||
|
|
Loading…
Add table
Reference in a new issue