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

Sylvain Viollon sylvain at infrae.com
Fri Feb 4 09:56:07 CET 2011


On Fri, 04 Feb 2011 09:14:27 +0100
Wim Boucquaert <wim at infrae.com> wrote:

> Hi Marc,
> 
  Hello,

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

  And you should use model instead of request.model (as it can be
  something else, i.e for a code source in a document which is used
  in a code source in an another document).

  If you code source directly renders a Page Template, you should use
  'options/model' and 'options/version' (and still not request.model).

  Version is the version of the document on which the code source is
  rendered.

  Regards,

  Sylvain,

-- 
Sylvain Viollon -- Infrae
t +31 10 243 7051 -- http://infrae.com
Hoevestraat 10 3033GC Rotterdam -- The Netherlands


More information about the silva-general mailing list