helper_addressbook.py.bak
1 """ 2 Insert value into addressbook 3 """ 4 5 from bmconfigparser import config 6 from helper_sql import sqlExecute 7 8 9 def insert(address, label): 10 """perform insert into addressbook""" 11 12 if address not in config.addresses(): 13 return sqlExecute('''INSERT INTO addressbook VALUES (?,?)''', label, address) == 1 14 return False