[Zope] dtml-in syntax

Michael Montagne Michael Montagne <montagne@boora.com>
Thu, 7 Mar 2002 16:30:33 -0800


>On 07/03/02, from the brain of Jim Penny tumbled:

> On Thu, Mar 07, 2002 at 04:14:40PM -0800, Montagne, Michael wrote:
> > zAllProjRoles is a zsqlmethod that returns as one of it's fields Projteamid.
> > I can get a value if I use <dtml-var Projteamid> within the loop.
> > ProjTeamPhones takes an argument called Projteamid.  It should return all
> > the phone numbers for this id number.  But this code gives me 
> > a 'Bad Request Error' on 'Projteamid'.  How can I pass the correct value?
> > <snip>
> > <dtml-in zAllProjRoles>
> >          <table bgcolor="<dtml-var color2>" width=800 cellspacing=0
> > cellpadding=5 border=0>
> >          ,,<snip>..
> >          <dtml-var ContempContactName>
> >          </td>
> >          <td align="left">
>              <dtml-var "REQUEST.set('Projteamid', Projteamid)">
> >            <dtml-in ProjTeamPhones>
> >            <dtml-var PhoneNumber><br>
> >            </dtml-in>
> >          </td>
> >          </tr>
> >          
> >  </dtml-in>
> 
> There are other ways.  You can pass it as an explicit arguemtn, for
> example.
> 
> ZSQL method use only REQUEST as default sources of arguments.
> 
> Jim Penny
> 

Wonderful!! Thank you.
Now for my education, how would I pass an explicit argument?  Assuming
the argument was a variable (ie <dtml-var teamid>).


-- 
Michael Montagne
montagne@boora.com
http://www.boora.com