Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

scope of <dtml-let> tag

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


indrajit926 at gmail

Jun 12, 2009, 1:27 AM

Post #1 of 2 (920 views)
Permalink
scope of <dtml-let> tag

Hello All,

I faced a parsing error when I used <dtml-if> and <dtml-let>, like below

-----some dtml code-----
<dtml-if CONDITION>
<dtml-let some_function>
<dtml-else>
<dtml-let other_function>
</dtml-if>
-----some code-------
------------------------
</dtml-let>

The above code gives parsing error about unexpected </dtml-if>

It works fine when I give as below

<dtml-if CONDITION>
<dtml-let some_function>
-----some code-------
------------------------
</dtml-let>
<dtml-else>
<dtml-let other_function>
-----some code-------
------------------------
</dtml-let>
</dtml-if>


Any help on about this behaviour of <dtml-let>.

Thanks in advance,
Indra.


lists at zopyx

Jun 12, 2009, 1:32 AM

Post #2 of 2 (828 views)
Permalink
Re: scope of <dtml-let> tag [In reply to]

On 12.06.09 10:27, indrajit926 indra wrote:
> Hello All,
>
> I faced a parsing error when I used <dtml-if> and <dtml-let>, like below
>
> -----some dtml code-----
> <dtml-if CONDITION>
> <dtml-let some_function>
> <dtml-else>
> <dtml-let other_function>
> </dtml-if>
> -----some code-------
> ------------------------
> </dtml-let>
>
> The above code gives parsing error about unexpected </dtml-if>
>
> It works fine when I give as below
>
> <dtml-if CONDITION>
> <dtml-let some_function>
> -----some code-------
> ------------------------
> </dtml-let>
> <dtml-else>
> <dtml-let other_function>
> -----some code-------
> ------------------------
> </dtml-let>
> </dtml-if>
>
>
> Any help on about this behaviour of <dtml-let>.

docs.zope.org -> Zope Book

The behavior is correct and documented.

-aj
Attachments: lists.vcf (0.31 KB)

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.