Changes between Version 28 and Version 29 of archive/Development/UiClient


Ignore:
Timestamp:
02/25/2008 05:18:04 PM (16 years ago)
Author:
mvoncken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • archive/Development/UiClient

    v28 v29  
    1515{{{ 
    1616#!python 
     17#get list of torrents 
    1718from deluge.ui.client import sclient 
    18 #get list of torrents 
    1919sclient.set_core_uri() 
    2020torrent_ids = sclient.get_session_state() 
    2121for id in torrent_ids: 
    22     print sclient.get_torrent_status(id, []) 
     22    print sclient.get_torrent_status(id, ['name','paused','ratio','progress'])]) 
     23}}} 
     24result: 
     25{{{ 
     26{'paused': False, 'progress': 100.0, 'ratio': 0.0, 'name': 'autocat_1.0.1.jar'} 
     27{'paused': False, 'progress': 100.0, 'ratio': 0.0, 'name': 'autospeed_0.9.0.jar'} 
     28{'paused': False, 'progress': 100.0, 'ratio': 0.0, 'name': 'aesmsclient_0.2.1.jar'} 
    2329}}} 
    2430 
     
    3036{{{ 
    3137#!python 
     38#get list of torrents 
    3239from deluge.ui.client import aclient 
    33 #get list of torrents 
    3440 
    3541class TestClient: 
     
    5965t.run() 
    6066}}} 
    61  
     67result: 
     68{{{ 
     69['a8d15bd5c740e29f6a0a5bd91547ad5356d01305', 'ca5820f21b316d169c63a953faa3abb1a8abb9f0', 'f2b609578473f6a29d3123ba0897213b3c1bbcda'] 
     70{'paused': False, 'progress': 100.0, 'ratio': 0.0, 'name': 'autocat_1.0.1.jar'} 
     71{'paused': False, 'progress': 100.0, 'ratio': 0.0, 'name': 'autospeed_0.9.0.jar'} 
     72{'paused': False, 'progress': 100.0, 'ratio': 0.0, 'name': 'aesmsclient_0.2.1.jar'} 
     73}}} 
    6274 
    6375= Client Methods = 
     
    215227 
    216228A method to see if the core is running 
     229 
    217230 
    218231