[ZPT] eliminated path expressions .. again

Evan Simpson evan@digicool.com
Thu, 31 May 2001 16:37:59 -0500


From: "Ulrich Eck" <ueck@net-labs.de>
> I want to include macros depending on the meta_type of the current
object.
>
> there is a folder chrome/standard where all the page-templates stored
named
> equal to the meta_types I use (each defines several macros, e.g.
"view").
>
>     <div metal:use-macro="python:path('here/chrome/standard/' +
> here.meta_type).macros['view']"/>

Try this:
metal:use-macro="python:path('here/chrome/standard/%s/macros/view' %
here.meta_type)"

> I'd really like to see nocall or trailing-slash back in the next
release

I'm beginning to like the idea of just going back to 'nocall:' and
'exists:'.  In the current implementation, this would automatically
create a Python nocall().

Cheers,

Evan @ digicool