[Zope] Arguments to DTML methods

J C Lawrence claw@kanga.nu
Sat, 15 Jan 2000 01:59:12 -0800


On Fri, 14 Jan 2000 17:05:45 -0800 
J C Lawrence <claw@kanga.nu> wrote:

> On Fri, 14 Jan 2000 16:24:48 -0500 Michel Pelletier
> <michel@digicool.com> wrote:

BTW _.None gave me problems in the DTML method trying to get to the
ZCLass' property sheet.  I found the following much happier:

  <dtml-var "dtml-method(_, PARENTS[0], uncle='bob')">

so that the called method got it's parent's property sheet.

> Ahh, does that mean that I can reliably do the following:

>   <dtml-in zsql_method> 
>     <dtml-var dtml_method_x((_, _.None, bob='uncle')> 
>   </dtml-in>

If so I haven't been able to make it work blast it.  It looks like I 
should be able to use aq_explicit ala:

   <dtml-in zsql_method> 
     <dtml-var dtml_method_x(aq_explicit, _.None, bob='uncle')> 
   </dtml-in>

but that raises access violations on _.None (least that's where I
think they're coming from).  I'm getting a little lost here.  Ideas?

-- 
J C Lawrence                                 Home: claw@kanga.nu
----------(*)                              Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--