[Zope] SQL Method, dtml-with and namespace weirdness

Chris Withers chrisw@nipltd.com
Wed, 10 Jan 2001 14:00:29 +0000


"Mayers, Philip J" wrote:
> 
> Sorry - I'm being unclear: the result is exactly the same either way i.e.
> the variables "name" and "domain" seem to be reset to the values from
> outside the dtml-in block when entering the dtml-with block.

> > > Change your show method in root to be as follows:
> > >
> > > <dtml-in get_machine_hosts>
> > >  <dtml-var show_row>
> > >  <dtml-in get_host_aliases>
> > >   <dtml-var show_row>
> > >  </dtml-in>
> > > </dtml-in>
> > >
> > > And add another DTML method in root as follows:
> > >
> > > show_row:
> > > <TR>
> > >   <TD><dtml-var ip missing></TD>
> > >   <TD>&dtml-name;</TD>
> > >   <TD>&dtml-domain;</TD>
> > > </TR>

Now I could grep the above to be sure, but I'm prety certain there
aren't any dtml-with's in there...
Perhaps the above might be worth trying out? ;-)

cheers,

Chris