Removed search_address method as staticmethod
This commit is contained in:
parent
f0c7c51cdd
commit
c07a251469
|
@ -196,10 +196,10 @@ class BMConfigParser(configparser.ConfigParser):
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@staticmethod
|
def search_addresses(self, address, searched_text):
|
||||||
def search_addresses(address, searched_text):
|
|
||||||
"""Return the searched label of MyAddress"""
|
"""Return the searched label of MyAddress"""
|
||||||
return [x for x in [BMConfigParser().get(address, 'label').lower(),
|
# import pdb; pdb.set_trace()
|
||||||
|
return [x for x in [self.get(address, 'label').lower(),
|
||||||
address.lower()] if searched_text in x]
|
address.lower()] if searched_text in x]
|
||||||
|
|
||||||
def disable_address(self, address):
|
def disable_address(self, address):
|
||||||
|
|
Reference in New Issue
Block a user