Bjorn Stabell wrote:
I would like

  <dtml-var content>
  <dtml-with content>...
  <dtml-if content>

to call different functions.  The first renders the object, the second
returns a mapping of the content's attributes/properties, the third
checks for "trueness" of the content.  Rendering a content could be an
expensive operation and I don't want to do it when doing dtml-with and
dtml-if.
That kind of implicit weirdage is not something python encourages.

<dtml-var content> ...should render
<dtml-with "content.properties">
<dtml-if "content.true()">

...is much better.

cheers,

Chris


_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )

Reply via email to