Page 1 of 1

How to add connection info in simpl?

Posted: May 12th, 2011, 3:58 pm
by copico
I'm trying to mod simpl for my own use, to add the connection/server info in the footer, but I get the following:

Code: Select all

Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 618, in respond
  File "cherrypy\_cpdispatch.pyo", line 25, in __call__
  File "sabnzbd\interface.pyo", line 274, in index
  File "cheetah__p2p_Usenet_SABnzbd_interfaces_smpl_Test_templates_main_tmpl_1305233284_17_10126.py", line 1891, in respond
NotFound: cannot find 'servers'
I basically just copy & paste the relevant code from connection_info.tmpl. As a test, I've simply stripped it down to adding the following in main.tmpl, but I still get the error:

Code: Select all

<!--#if $servers#-->
<!--#end if#-->
Appreciate any help.  :)

I'm using 0.6.0.

Re: How to add connection info in simpl?

Posted: May 13th, 2011, 1:49 am
by shypike
The main page isn't supplied with the required variables to do this.
You'd have to modify the Python code too.

Re: How to add connection info in simpl?

Posted: May 15th, 2011, 8:56 am
by copico
Thanks for the info. I was hoping it was just something simple I had missed to do... I don't know Python unfortunately.