[Zope] How can I let ZSQL method know the variable i define.
Tom Cameron
tom@cameron.to
Sun, 28 Oct 2001 08:10:22 +1000
I think you need to pass the entire name space through. Like this...
<dtml-in "test_for_page_count(_.None,_,url=url)">
Tom
=> -----Original Message-----
=> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Eiffel
=> Sent: Sunday, 28 October 2001 3:59 AM
=> To: Zope-List
=> Cc: sabaini@niil.at
=> Subject: Re: [Zope] How can I let ZSQL method know the variable i define.
=>
=>
=> 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>
=>
=> ٢
j)ef^:){??m??-?j)fj
=> b?Ί^hr?,+3
=> zw(v)?EZel?m??-?j)fjb?Ί^zm??-?
j)fjb?Ί^?
=>