[Silva-general] silva-2.3: code sources error

Wim Boucquaert wim at infrae.com
Fri Feb 4 09:14:27 CET 2011


Hi Marc,

As Parameter List for your python script you need to add 'model' and 
'version'. It will work fine then.

Regards

Wim

Marc Petitmermet wrote:
> dear all
> 
> i have a problem creating code sources in silva-2.3.
> 
> i create a silva code source with title "foo", render id "foo" and as content a python script "foo" with the content "return 'bar'"; everything else is left to its defaults, e.g. no parameters. while this works perfectly in silva-2.2.1 including a nice preview in kupu this does not work at all in silva-2.3.
> 
> in silva-2.3 i get the error "An HTTP 500 error was encountered when attempting to preview this external source" in the preview in kupu. and in the preview tab is says "foo() takes no arguments (2 given)". what am i doing wrong here?
> 
> regards,
> marc
> 
> _______________________________________________
> silva-general mailing list
> silva-general at lists.infrae.com
> https://lists.infrae.com/mailman/listinfo/silva-general



More information about the silva-general mailing list