[Zope] Need help on a probably trivial problem with let.
Jim Sanford
jsanford@atinucleus.com
Wed, 6 Oct 1999 13:20:31 -0500
I believe that each variable= in the let tag needs to be separated from the
previous variable= by a newline.
try
> <!--#let result="sql_methods.select.lug(REQUEST)"
count="_.len(result)"-->
> There were <!--#var count--> hits on the LUG module.
> <!--#/let-->
----- Original Message -----
From: Morten W. Petersen <mpeters@online.no>
To: <zope@zope.org>
Sent: Wednesday, October 06, 1999 12:51 PM
Subject: [Zope] Need help on a probably trivial problem with let.
> <!--#if search_locate-->
> <!--#if "_.hasattr('ignorecase',0)"-->
> <!--#let result="sql_methods.select.lug(REQUEST)" count="_.len(result)"-->
> There were <!--#var count--> hits on the LUG module.
> <!--#/let-->
> <!--#/if-->
> <!--#if ignorecase-->
> <!--#in "sql_methods.select.lug_ignorecase(REQUEST)"-->
> <!--#var lug_title-->
> <!--#/in-->
> <!--#/if-->
> <!--#/if-->
>
> this baby gives me the error:
>
> Unexpected tag, for tag <!--#let result="sql_methods.select.lug(REQUEST)"
> count="_.len(result)"-->, on line 13 of index_html
>
> <!--
> Traceback (innermost last):
> File /home/morphex/Zope/lib/python/ZPublisher/Publish.py, line 878, in
publish_module
> File /home/morphex/Zope/lib/python/ZPublisher/Publish.py, line 590, in
publish
> (Info: /Linoo/Search/index_html/manage_edit)
> File /home/morphex/Zope/lib/python/OFS/DTMLMethod.py, line 238, in
manage_edit
> (Object: index_html)
> File /home/morphex/Zope/lib/python/DocumentTemplate/DT_String.py, line
360, in munge
> (Object: index_html)
> File /home/morphex/Zope/lib/python/DocumentTemplate/DT_String.py, line
376, in cook
> (Object: index_html)
> File /home/morphex/Zope/lib/python/DocumentTemplate/DT_String.py, line
223, in parse
> (Object: index_html)
> File /home/morphex/Zope/lib/python/DocumentTemplate/DT_String.py, line
267, in parse_block
> (Object: index_html)
> File /home/morphex/Zope/lib/python/DocumentTemplate/DT_String.py, line
297, in parse_close
> (Object: index_html)
> File /home/morphex/Zope/lib/python/DocumentTemplate/DT_String.py, line
124, in parse_error
> (Object: index_html)
> Document Template Parse Error: (see above)
>
> -->
>
>
> I'm kinda stumped.
>
> Thanks in advance
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (Related lists - please, no cross posts or HTML encoding!
>
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>