Thanks Rik it works.

I've noticed in some cases that one puts empty brackets at the end of
certain zope object methods.  Is that there for methods that can take

[rh]Um, not quite, it has to do with the way of calling the object methods
in question. DTML has two ways of calling: by name and through expressions.

1. The 'normal' Zope way of writing things is <dtml-var  objectValues>. This
is shorthand for <dtml-var name="objectValues">.

2. The other way is <dtml-var "objectValues">. This is shorthand for
<dtml-var expr="objectValues">. Everything inside the expression is treated
as a python expression. If you call it without the brackets, you're just
referencing the method. If you try that in a DTML Method and look in the
source of the diplayed document you'll see something like
<Python Method object at 13fcbf0>. If you want to _call_ the method, you'll
have to add the brackets (with or without arguments).

Hope this is clear.


Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to