Show
Ignore:
Timestamp:
06/15/09 02:46:06 (3 years ago)
Author:
ocjhb
Message:

webwallet can now do basic actions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/sandbox/jhb/oc2/testwallet.py

    r279 r327  
    44>>> w = wallet.Wallet(storage.Storage().setFilename('data/test.bin')) 
    55>>> import transports 
    6 >>> transport = transports.HTTPTransport('http://localhost:9090/') 
    7 >>> w.buyCoins(transport,97,'foobar') 
    8  
     6>>> transport = transports.HTTPTransport('http://baach.de:9090/') 
     7>>> w.addCurrency(transport) 
     8>>> w.mintCoins(transport,13,'foobar') 
     9>>> transport = transports.HTTPTransport('http://localhost:9091/wallet.cgi') 
     10>>> w.spendCoins(transport,'BaachBuck',5,'foobar') 
    911 
    1012"""