[Zope] SQL Method, dtml-with and namespace weirdness
Chris Withers
chrisw@nipltd.com
Wed, 10 Jan 2001 13:30:00 +0000
"Mayers, Philip J" wrote:
>
> > 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>
> >
> > so you have:
> > /root
> > get_machine_hosts (SQL method)
> > get_host_aliases (SQL method)
> > show (dtml method)
> > show_row (dtml method)
> That was how I had the code originally. Didn't help.
What happens when you try that? Errors? Unexpected values?
> I've already read the
> Zope 'book'
Yes, it is frustrating how long it's taking for that to get printed, I
wonder what's holding it up?
> (if I were using 2.3 (which I can't, because LoginManager
> doesn't work OOTB),
I remember seeing the posts relating to that, did you ever find out why
it wasn't working?
> I'd be using Python methods to do most of this instead.
> I'm not, I'm using 2.2.5)
Wise choice, but you mean python scripts in 2.3 ;-)
You can actually download Python _Methods_ right now and use them in
2.2.5:
http://www.zope.org/Members/4am/PythonMethod
cheers,
Chris