How to add connection info in simpl?

Got a neat new template? Share it here!
Post Reply
copico
Newbie
Newbie
Posts: 8
Joined: May 12th, 2011, 3:45 pm

How to add connection info in simpl?

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: How to add connection info in simpl?

Post by shypike »

The main page isn't supplied with the required variables to do this.
You'd have to modify the Python code too.
copico
Newbie
Newbie
Posts: 8
Joined: May 12th, 2011, 3:45 pm

Re: How to add connection info in simpl?

Post 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.
Post Reply