thandle URI labels - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7cfb78cdc6a1f9f999bf3841f540f9a9151d65bb DIR parent 9d59124b8a08edafd596dc21d646ccc0a664c693 HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 8 Jun 2012 23:15:08 +0200 handle URI labels Diffstat: M lib/wallet.py | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1008,6 +1008,12 @@ class Wallet: else: print k,v + if label and self.labels.get(address) != label: + if question('Give label "%s" to address %s ?'%(label,address)): + if address not in self.addressbook and address not in self.all_addresses(): + self.addressbook.append(address) + self.labels[address] = label + if signature: if re.match('^(|([\w\-\.]+)@)((\w[\w\-]+\.)+[\w\-]+)$', identity): signing_address = self.get_alias(identity, True, show_message, question)