Page 2 of 2

Re: Disk space/unrar help with coding it/feature req

Posted: Sat Sep 20, 2008 8:34 am
by mrbrdo
i'm sorry, it is my fault that i was too lazy to try the svn before i asked anything... it works in the svn version :) actually, it might have even worked before, maybe i didn't notice it in the config part of the webui (in classic skin).

since i see you are here, i guess you can save me some hassle and tell me - how would i go about with including the df.html code 'part' in index.html? and how would i go about with reading a variable from the plugin in index, like i can in df. i am going to start trying but i hope you're faster :)

EDIT: why i ask is because if i do "$def with (torrent_list, organize_filters, df_result)" i get "TypeError : values for ['df_result'] are required". sorry if this is something obvious to a python-programmer, i'm more used to C++ and such, kinda new to python i guess. edit2: hm i guess that would be the wrong way anyway, seems like those are parameters for the render function, right? :P

Re: Disk space/unrar help with coding it/feature req

Posted: Sat Sep 20, 2008 8:42 am
by mvoncken
mrbrdo wrote:i'm sorry, it is my fault that i was too lazy to try the svn before i asked anything... it works in the svn version :) actually, it might have even worked before, maybe i didn't notice it in the config part of the webui (in classic skin).
since i see you are here, i guess you can save me some hassle and tell me - how would i go about with including the df.html code 'part' in index.html?
1 : You would have to wait for the status-bar api.

mrbrdo wrote: and how would i go about with reading a variable from the plugin in index, like i can in df. i am going to start trying but i hope you're faster :)
2:
You can't.
You could do it by modifying the index class in pages.py, and modifying the deluge templates but then you're hacking deluge itself.
See 1.

And for fast chat you can join us on irc ;).