Page 1 of 1

[Solved] Problem with webui (0.6 branch)

Posted: Mon Feb 25, 2008 11:17 pm
by moz
Hi,
I'm having a problem with the webui. Every time i try adding a torrent through the webui i get the same error "AttributeError : 'queue_pos'". And even when i try logging in i get that same error. The only way i manage to log in(default pass) is by deleting the .config/deluge folder or removing ALL torrents (through the gtkui). I know that 0.6 is still in development and its supposed to have a bug here n there but i just want to know if there's a mistake on my side and if i can fix it, if not..tough. Im running the latest revision 2862 on kubuntu gutsy. Here's the traceback i got:

Code: Select all

--Deluge Error--
AttributeError : 'queue_pos'
path : /index
file : /usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/lib/webpy022/utils.py in __getattr__, line 53

--Input--
<Storage {'sort': 'queue_pos', 'order': 'down'}>

--Versions--
WebUi : rev.185
Python : 2.5.1 (r251:54863, Oct  5 2007, 13:36:32) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
dbus:0.82.0

--Traceback--
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/lib/webpy022/webapi.py", line 304, in wsgifunc
    result = func()
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/lib/webpy022/request.py", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/page_decorators.py", line 38, in deco
    return func(self, name) #check_session:ok
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/page_decorators.py", line 55, in deco
    return func(self, name) #check_connected:ok
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/page_decorators.py", line 22, in deco
    res = func(self, name) #deluge_page_noauth
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/page_decorators.py", line 107, in deco
    return func(self, name) #auto_refreshed
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/pages.py", line 147, in GET
    torrent_list.sort(key=attrgetter(vars.sort))
  File "/usr/lib/python2.5/site-packages/deluge-0.6.0.0-py2.5-linux-i686.egg/deluge/ui/webui/webui_plugin/lib/webpy022/utils.py", line 54, in __getattr__
    raise AttributeError, k
Btw, separating the core from the ui was the best idea ever. Thanks and keep up the good work.

Re: Problem with webui (0.6 branch)

Posted: Tue Feb 26, 2008 12:19 am
by mvoncken
edit3:
remove your cookies, it's using a deluge 0.5 sort-argument.
fixed in 2864.

Re: Problem with webui (0.6 branch)

Posted: Tue Feb 26, 2008 1:19 am
by moz
Excellent. It works flawlessly now. Thanks a mil.