Changeset 290 for trunk

Show
Ignore:
Timestamp:
04/30/09 19:14:49 (3 years ago)
Author:
ocjhb
Message:

first real coin transfer including crypto checking etc

Location:
trunk/sandbox/jhb
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/sandbox/jhb/mobile/ocwallet.py

    r279 r290  
    22from graphics import * 
    33from key_codes import EKeyLeftArrow, EKeyRightArrow 
    4  
     4import encodings 
    55from oc2 import storage,wallet, transports 
    66 
     
    3535            description = unicode(cdd.issuerServiceLocation) 
    3636            self.wallet_list.append((title,description)) 
    37         self.wallet_menu =  appuifw.Listbox(self.wallet_list,self.displayActionMenu) 
    38         self.wallet_menu.bind(EKeyRightArrow,self.displayActionMenu) 
     37        if not self.wallet_list: 
     38            self.wallet_list.append(u'no currencies yet') 
     39            self.wallet_menu =  appuifw.Listbox(self.wallet_list,self.displayActionMenu) 
     40        else: 
     41            self.wallet_menu =  appuifw.Listbox(self.wallet_list,self.displayActionMenu) 
     42            self.wallet_menu.bind(EKeyRightArrow,self.displayActionMenu) 
    3943 
    4044    def displayWalletMenu(self): 
     
    112116 
    113117    def addCurrency(self): 
    114         url = appuifw.query(u'url','text',u'http://localhost:9090') 
     118        url = appuifw.query(u'url','text',u'http://192.168.2.101:9090') 
    115119        self.todo['url'] = url 
    116120        transport = self.getHTTPTransport(url)  
     
    163167            import sys 
    164168            try: 
    165                 sys.modules['socket'] = __import__('btsocket') 
    166                 import socket 
     169                #sys.modules['socket'] = __import__('btsocket') 
     170                import btsocket as socket 
    167171                apid = socket.select_access_point() 
    168172                apo = socket.access_point(apid) 
     
    188192app_lock = e32.Ao_lock() 
    189193storage = storage.Storage() 
    190 storage.setFilename('data/wallet.bin') 
     194storage.setFilename('wallet.bin') 
    191195storage.restore() 
    192196 
  • trunk/sandbox/jhb/oc2/testissuer.py

    r287 r290  
    11import BaseHTTPServer 
    2 import protocols, issuer, mint,authorizer,storage 
     2import issuer, mint,authorizer,storage 
    33from testserver import Handler 
    44 
  • trunk/sandbox/jhb/oc2/testserver.py

    r277 r290  
    11import BaseHTTPServer, threading 
    2 import protocols, issuer, mint, transports, urllib 
     2import issuer, mint, transports, urllib 
    33 
    44 
  • trunk/sandbox/jhb/oc2/wallet.py

    r286 r290  
    11from entity import * 
    2 from protocols import * 
    32from container import * 
    43import occrypto