URI: 
       tfixes - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 479b71b69067e22251da6cc45fa1c669983a8620
   DIR parent 462e7f3d0dad02e4a65af35ef18815173a72c26d
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Wed,  9 Nov 2011 23:21:27 +0100
       
       fixes
       
       Diffstat:
         M client/electrum.py                  |      14 +++++++-------
       
       1 file changed, 7 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/client/electrum.py b/client/electrum.py
       t@@ -333,7 +333,7 @@ class Wallet:
                return True
        
            def save(self):
       -        s = repr( (self.version, self.use_encryption, self.fee, self.host, self.blocks,
       +        s = repr( (self.version, self.use_encryption, self.fee, self.host, self.port, self.blocks,
                           self.seed, self.addresses, self.private_keys, 
                           self.change_addresses, self.status, self.history, 
                           self.labels, self.addressbook) )
       t@@ -350,14 +350,12 @@ class Wallet:
                    return False
                try:
                    sequence = ast.literal_eval( data )
       -            (self.version, self.use_encryption, self.fee, self.host, self.blocks, 
       +            (self.version, self.use_encryption, self.fee, self.host, self.port, self.blocks, 
                     self.seed, self.addresses, self.private_keys, 
                     self.change_addresses, self.status, self.history, 
                     self.labels, self.addressbook) = sequence
                except:
       -            if len(sequence) == 12: 
       -                raise BaseException("version error.")
       -                return False
       +            raise BaseException("version error.")
                self.update_tx_history()
                return True
                
       t@@ -397,8 +395,9 @@ class Wallet:
        
            def request(self, request ):
                import urllib
       +        use_http = self.port in [80,81]
        
       -        if self.port == 80:
       +        if use_http:
                    request2 = urllib.urlencode({'q':request})
                    request = "GET /electrum.php?" + request2 + " HTTP/1.0\r\n\r\n"
                else:
       t@@ -414,7 +413,7 @@ class Wallet:
                    else: break
                s.close()
        
       -        if self.port == 80:
       +        if use_http:
                    out = out.split('\r\n')[-1]
        
                return out
       t@@ -617,6 +616,7 @@ if __name__ == '__main__':
                gui.init_wallet(wallet)
                gui = gui.BitcoinGUI(wallet)
                gui.main()
       +        wallet.save()
                exit(0)
        
            if not wallet.read():