[Zope] Re: Interpreting dynamically generated TAL

tomas@fabula.de tomas@fabula.de
Fri, 6 Sep 2002 16:32:20 +0200


On Wed, Sep 04, 2002 at 01:10:37PM -0500, Evan Simpson wrote:
> tomas@fabula.de wrote:
> > |#### FIXME: what do we do with those?  ## tal=not source, strictinsert=0 
> > ##
> > |        return output.getvalue()
> >
> >The compiler seems happy, the interpreter doesn't barf either, but it 
> >doesn't
> >replace a thing. It passes input verbatim to output. Am I missing anything
> >obvious? Am I trying --again-- the impossible?
> 
> Looks good to me.  Hmm.  The 'tal' argument indicates whether to execute 
>  TAL code, but it is true by default.  The 'strictinsert' argument 
> controls whether text inserted by tal:replace and tal:content is parsed 
> and compiled, and should probably be set false.

Ahh. Thanks for the clarifications.

> Are you testing with 'ishtml' true or false?  When it is false, you'll 
> need to make sure that your XML contains the TAL namespace declaration.

'ishtml' is set to false in our case.

Thank you very much for your help. THe next thing I'll try is to set
'tal' explicitily to true. Who knows...

Regards
-- tomas