[Zope] Arguments to DTML methods

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


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

> <dtml-var "aMethod(aMappingObject, aClient, arg1, arg2...)">

> 'aMappingObject' is a mapping containing the current 'namespace',
> or the namespace you want this method to use.  This is often '_'
> (the current DTML namespace)

> 'aClient' is an object you want to provide the namespace for this
> method.  This is often '_.None' (no client object)

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>

or to be a little more explicit and define the requested namespace:

  <dtml-in zsql_method>
    <dtml-var dtml_method_x((_, id, bob='uncle')>
  </dtml-in>
  
So that dtml_method_x acquires the namespace added by the
zsql_method, and thus access to the current row pulled from the DB?

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