[Zope] paramters to sql methods have to be in REQUEST????

Michel Pelletier michel@digicool.com
Thu, 29 Jul 1999 02:29:55 -0400


"Jay, Dylan" wrote:
> 
> Why is it that
> 
>         <!--#with "_.namespace(MatchPattern=bits[0])"-->
>          <!--#var ChoosePart-->
>         <!--#/with-->
> 
> doen't work and
> 
>         <!--#call "REQUEST.set('MatchPattern',bits[0])"-->
>         <!--#var ChoosePart-->
> does??????
> 
> Is this a bug? If so can it be fixed as it is annoying.

This is not a bug.  ZSQL methods take keyword arguments, or snif
REQUEST, but do not sniff the namespace.  This is because the namespace
could be huge.

Try:

<!--#var "ChoosePart(MatchPattern=bits[0])"-->

-Michel

> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (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 )