URI: 
       tdisplay type for imported keys - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 30a4177247c5e82671603938bf0be7bd19c58ccb
   DIR parent 7243cd6ce37994ffb2bebce3c8d86c88c009892a
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Wed, 21 Dec 2011 17:56:26 +0100
       
       display type for imported keys
       
       Diffstat:
         M client/electrum.py                  |       7 +++++--
       
       1 file changed, 5 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/client/electrum.py b/client/electrum.py
       t@@ -885,7 +885,10 @@ if __name__ == '__main__':
            elif cmd in [ 'addresses']:
                for addr in wallet.all_addresses():
                    if options.show_all or not wallet.is_change(addr):
       -                label = wallet.labels.get(addr) if not wallet.is_change(addr) else "[change]"
       +                label = wallet.labels.get(addr)
       +                _type = ''
       +                if wallet.is_change(addr): _type = "[change]"
       +                if addr in wallet.imported_keys.keys(): _type = "[imported]"
                        if label is None: label = ''
                        if options.show_balance:
                            h = wallet.history.get(addr)
       t@@ -898,7 +901,7 @@ if __name__ == '__main__':
                        if options.show_keys:
                            pk = wallet.get_private_key2(addr, password)
                            addr = addr + ':' + SecretToASecret(pk)
       -                print addr, b, label
       +                print addr, b, _type, label
        
            if cmd == 'history':
                lines = wallet.get_tx_history()