[Zope] How can I let ZSQL method know the variable i define.
Peter Sabaini
sabaini@niil.at
Sat, 27 Oct 2001 23:45:58 +0200 (CEST)
strange, works for me...
is the url parameter listed in the zsql method test_for_page_count
(should appear in the "Arguments" field)?
does it work if you set url to some fixed string eg.
<dtml-in "test_page_count(url='some_url')"> ...
hth
peter.
On Sun, 28 Oct 2001, Eiffel wrote:
> Hi Peter:
> I test ur solution, but still does not work, i just rewrite the code in stand_html_footer.(also put <dtml-var url> debug code before and after that essential code ------- <dtml-in "test_for_page_count(url=url)">)
>
> still "test_for_page_count" zsql method could not handle URLO parameter
>
>
> <dtml-call "REQUEST.set('url', URL0)">
>
> <dtml-var url> // it appears url here
>
>
> <dtml-in "test_for_page_count(url=url)">
>
>
> <dtml-var url> // but it does not appear url here
>
> <dtml-if "count>=1">
> <dtml-call update_page_count>
> <dtml-in getPageViews>
> <center>
> This page has been viewed <b><dtml-var count></b> times.
> </center>
> </dtml-in>
> <dtml-else>
> <dtml-call initialize_page_count>
> <dtml-in getPageViews>
> <center>
> This page has been viewed <b><dtml-var count></b> time.
> </center>
> </dtml-in>
> </dtml-if>
> </dtml-in>
>
>
--
_________________________________________________
peter sabaini, mailto: sabaini@niil.at
-------------------------------------------------