Dieter Maurer wrote:
>  * Access to "/": "PARENTS[-1]"
>  * Existence check: "_.hasattr(object,what)"
>      NOTE, that this is the sloppy part.
>       - "_.hasattr" will return true, if "object" has
>         attribute "what" (that is what we want)
>         *OR* when it has acquired such an attribute
>         (we do *NOT* want that here).
>         What we would need is a DTML accessible version
>         of "aq_base". This is trivially handled by
>         an external method.

Can you do this with the following in DTML?

  <dtml-with "PARENTS[-1]" only>
    <dtml-if "_.hasattr(object, what)">

Not tested, but it looks right to me.

Steve Alexander
Software Engineer
Cat-Box limited

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

Reply via email to