[Zope] Re: Weird ZSQL Method thing...

Michel Pelletier michel@digicool.com
Tue, 21 Mar 2000 05:34:02 -0800


Chris Withers wrote:
> 
> >  <dtml-in case(cid=cid)>
> 
> of course, I actually mean <dtml-in "case(cid=cid)">

ZSQL Methods create their own namespace (I don't know why).  You must
explicitly pass them arguments.  You can, of course, pass then entire
namespace:

<dtml-in "case(ns=_)">
  ...
</dtml-in>


and in your SQL Method:

<dtml-with ns>
 ...
</dtml-with>

This is, like all of my advice, completely untested and off the top of
my head, but it should fly.

-Michel