[ZPT] eliminated path expressions:

Peter Bengtsson mail@peterbe.com
Mon, 28 May 2001 12:29:55 +0200


----- Original Message -----
From: "Lalo Martins" <lalo@hackandroll.org>
To: <zpt@zope.org>
Sent: Friday, May 25, 2001 5:45 PM
Subject: Re: [ZPT] eliminated path expressions:


> On Fri, May 25, 2001 at 10:17:41AM -0400, Evan Simpson wrote:
> > From: "Geir Bækholt" <geirh@funcom.com>
> > > is there any simple way to display template/title if it contains
anything,
> > and here/title if not ?
> >
> > tal:replace="python:path('template/title') or path('here/title')" will
do
> > it.
>
> Which obviously can be more inteligibly written as
> tal:replace="python:template.title or here.title"

I don't know which one is best to use (according to the evan et al)
but I added both alternatives to my list
http://www.zope.org/Members/peterbe/DTML2ZPT/#example9


> []s,
>                                                |alo
>                                                +----
> --
>            I say a prayer now our love's departed
>                 That you'll come back to stay
>                   Bring back the perfect day
>
> http://www.laranja.org/                mailto:lalo@laranja.org
>          pgp key: http://www.laranja.org/pessoal/pgp
>
> Brazil of Darkness (RPG)      ---       http://www.BroDar.org/
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt