0.6 Development Report

Suggestions and discussion of future versions
Post Reply
mickstephenson
Member
Member
Posts: 12
Joined: Sun Nov 18, 2007 12:40 am

Re: 0.6 Development Report

Post by mickstephenson »

Sorry for having a question which probably has an immediately obvious answer, but how do I get the webui running?
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: 0.6 Development Report

Post by andar »

mickstephenson wrote:Sorry for having a question which probably has an immediately obvious answer, but how do I get the webui running?

Code: Select all

deluge --ui web
mvoncken
Developer
Developer
Posts: 225
Joined: Mon Sep 03, 2007 9:38 pm

Re: 0.6 Development Report

Post by mvoncken »

Current status of webui :

config:
Image

Torrent-list:
Image

Details:
Image
dev: webui, core, labels | irc:vonck7 |
pettman
Member
Member
Posts: 20
Joined: Mon Jul 30, 2007 11:48 pm

Re: 0.6 Development Report

Post by pettman »

How hard would it be to develop a curses interface for those who access their boxes through SSH? If it isn't too hard and someone could point me to a good curses tutorial I could give it a try (it would be a good reason to learn curses and get some python experience).
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: 0.6 Development Report

Post by markybob »

pettman wrote:How hard would it be to develop a curses interface for those who access their boxes through SSH? If it isn't too hard and someone could point me to a good curses tutorial I could give it a try (it would be a good reason to learn curses and get some python experience).
there already is one, called delugent and is included as part of python-gnt (http://code.google.com/p/python-gnt/). also, you can send commands to deluged using the 'null' ui that's included with 0.6
sadrul

Re: 0.6 Development Report

Post by sadrul »

pettman wrote:How hard would it be to develop a curses interface for those who access their boxes through SSH? If it isn't too hard and someone could point me to a good curses tutorial I could give it a try (it would be a good reason to learn curses and get some python experience).
Yep. There's delugent. Some screenshots are available here: http://pidgin.im/~sadrul/ss/apps.html

The current plan is to add the ncurses ui in the 0.6 branch. The problem with that for now is, libgnt is currently only distributed with pidgin, and python-gnt isn't distributed at all! ;) The code for both of these can be accessed from http://repo.or.cz/w/python-gnt.git and http://repo.or.cz/w/gnt.git, though. I hope to get some free time during the next week (I have all my fingers and toes crossed!), and I should be able to do something about it to make it easier for testers/patch writers to use the code.

In the meanwhile, feel free to browse around the code to get a feel of how it is (http://repo.or.cz/w/python-gnt.git?a=tr ... b8;hb=HEAD).

The gnt library was purposefully designed to be mostly compatible with the GTK+ style of coding. So looking at deluge should also give a good feel to how the code in delugent works. Also, before I add this in the trunk, any suggestion on a better name for the curses UI than 'delugent'? :)
Stedevil
Member
Member
Posts: 18
Joined: Mon Mar 03, 2008 7:17 pm

Re: 0.6 Development Report

Post by Stedevil »

sadrul wrote: a better name for the curses UI than 'delugent'? :)
If you are already using the names
deluge webui & deluge clui, why not deluge-nui?
oshiri
Member
Member
Posts: 40
Joined: Thu Nov 29, 2007 10:34 am

Re: 0.6 Development Report

Post by oshiri »

Just tested Deluge 0.6.0.0r2926.
Everything looks fine on Debian etch except systray will never going to show (same problem with 0.5.x) cause by ancient packages :D

I dont have problem with svn2727.

This time I got problem with adding torrent from url. Both Gtk gui and Webui won't work.
From Gui, nothing happen, file does not show.

Code: Select all

[DEBUG   ] __init__:1072 on_toolbutton_add_clicked
[DEBUG   ] __init__:1072 on_menuitem_addtorrent_activate
[DEBUG   ] __init__:1072 _on_button_url_clicked
[DEBUG   ] __init__:1072 url: http://www.mininova.org/get/xxx
[DEBUG   ] __init__:1072 _on_button_add_clicked
[DEBUG   ] __init__:1072 Attempting to add torrent files: []
Webui will report error:
Fault : <Fault 1: 'exceptions.TypeError:export_add_torrent_url() takes exactly 4 arguments (3 given)'>
SERVER_SOFTWARE 'CherryPy/3.0.2 WSGI Server'
wsgi.errors <open file '<stderr>', mode 'w' at 0xb7dbd0b0>
wsgi.input <socket._fileobject object at 0xb754cbfc>
wsgi.multiprocess False
wsgi.multithread True
wsgi.run_once False

Code: Select all

[DEBUG   ] __init__:1072 torrent_add.POST(name=)
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/ui/webui/lib/webpy022/webapi.py", line 304, in wsgifunc
    result = func()
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/ui/webui/page_decorators.py", line 38, in deco
    return func(self, name) #check_session:ok
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/ui/webui/torrent_add.py", line 118, in POST
    proxy.add_torrent_url(vars.url,options)
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/xmlrpclib.py", line 1150, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/xmlrpclib.py", line 1440, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/xmlrpclib.py", line 1204, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/xmlrpclib.py", line 1343, in _parse_response
    return u.close()
  File "/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: 'exceptions.TypeError:export_add_torrent_url() takes exactly 4 arguments (3 given)'>
Another thing is, once I start deluge -u web, then kill it. GTK gui will fail to start.
Looks like webui taking over gtk.

Code: Select all

$ deluge
[INFO    ] __init__:1072 Deluge ui 0.6.0.0r2926
[DEBUG   ] __init__:1072 options: {'ui': None}
[DEBUG   ] __init__:1072 args: []
[DEBUG   ] __init__:1072 ConfigManager started..
[INFO    ] __init__:1072 Starting ui..
[DEBUG   ] __init__:1072 UI init..
[DEBUG   ] __init__:1072 Getting config 'ui.conf'
[DEBUG   ] __init__:1072 Config created with filename: ui.conf
[DEBUG   ] __init__:1072 Config defaults: {'selected_ui': 'gtk'}
[DEBUG   ] __init__:1072 Opening pickled file for load..
[DEBUG   ] __init__:1072 Opening pickled file for comparison..
[DEBUG   ] __init__:1072 Not writing config file due to no changes..
[DEBUG   ] __init__:1072 Opening pickled file for comparison..
[DEBUG   ] __init__:1072 Not writing config file due to no changes..
[INFO    ] __init__:1072 Starting WebUI..
[DEBUG   ] __init__:1072 CoreProxy init..
[ERROR   ] __init__:1072 no translations :(
[INFO    ] __init__:1072 Setting core uri as http://localhost:58846
[DEBUG   ] __init__:1072 Creating ServerProxy..
[DEBUG   ] __init__:1072 cfg-file /home/xxx/.config/deluge/webui.conf
<module 'deluge.ui.webui.utils' from '/usr/lib/python2.4/site-packages/deluge-0.6.0.0-py2.4-linux-i686.egg/deluge/ui/webui/utils.pyc'>
['REVNO', 'STATE_MESSAGES', 'Storage', 'TORRENT_KEYS', 'UnknownTorrentError', 'VERSION', 'WebUiError', '__builtins__', '__doc__', '__file__', '__name__', 'async_proxy', 'attrgetter', 'cookies', 'daemon_start_localhost', 'daemon_test_online_status', 'datetime', 'debug_unicode', 'dict_cb', 'do_redirect', 'end_session', 'enhance_torrent_status', 'fsize', 'fspeed', 'ftime', 'get_enhanced_torrent_list', 'get_newforms_data', 'get_stats', 'get_torrent_status', 'getcookie', 'log', 'logcall', 'os', 'pickle', 'proxy', 'random', 'seeother', 'self_url', 'setcookie', 'start_session', 'template', 'traceback', 'url', 'urlparse', 'w_setcookie', 'web', 'ws']
http://0.0.0.0:8112/
gtk in ui.conf has been replace by web:

Code: Select all

dp1
S'selected_ui'
p2
S'web'
p3
s.
That's all for now.
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: 0.6 Development Report

Post by andar »

oshiri wrote:Just tested Deluge 0.6.0.0r2926.
Everything looks fine on Debian etch except systray will never going to show (same problem with 0.5.x) cause by ancient packages :D

I dont have problem with svn2727.

This time I got problem with adding torrent from url. Both Gtk gui and Webui won't work.
From Gui, nothing happen, file does not show.

Code: Select all

[DEBUG   ] __init__:1072 on_toolbutton_add_clicked
[DEBUG   ] __init__:1072 on_menuitem_addtorrent_activate
[DEBUG   ] __init__:1072 _on_button_url_clicked
[DEBUG   ] __init__:1072 url: http://www.mininova.org/get/xxx
[DEBUG   ] __init__:1072 _on_button_add_clicked
[DEBUG   ] __init__:1072 Attempting to add torrent files: []
gtk in ui.conf has been replace by web:

Code: Select all

dp1
S'selected_ui'
p2
S'web'
p3
s.
That's all for now.
Add by URL doesn't work in the gtkui yet. I broke it when I redesigned the Add Torrent dialog and haven't bothered to fix it yet.

the --ui switch will change the default UI.. I will change this eventually and add a --set-default switch.
weltall
New User
New User
Posts: 8
Joined: Sun Sep 02, 2007 1:56 pm

Re: 0.6 Development Report

Post by weltall »

may i ask what is the memory/cpu footprint of the daemon with something like 20 torrents running? i'd like to run it on a extremely low end machine which i use as file/ups/bnc server: it has just 32mb of ram and 300mhz of cpu and runs linux 2.4.17.
thanks in advance for the answers :)
Post Reply