[ZPT] ZPT in ZSQL Method
Corey Saltiel
corey@axcelerant.com
Sun, 26 Jan 2003 13:56:32 -0800
On Sunday 26 January 2003 01:47 pm, Geir B=E6kholt wrote:
> Sunday, January 26, 2003, 10:33:05 PM, you wrote:
<snip>
> > I'd like to do something like:
> > <p><span tal:replace=3D"here/select_CompanyID('CompanyId')">CompanyId<=
/span></p>
>
> <p tal:content=3D"python:here.select_CompanyID()[0].CompanyId">CompanyId<=
/p>
>
> would work (if select_CompanyID don't need parameters passed in..)
>
Perfect!
That one example explains *alot* - much appreciated!
<snip>
> why not just write this one as :
>
> <p tal:repeat=3D"item here/select_CompanyID"
> tal:content=3D"item/CompanyId">
> CompanyID
> </p>
> which is even valid ;) - you cannot have ps within spans in valid HTML
> (this has nothing to do with ZPT ;) )
>
> - and as there is really no need for all those spans anyway, why not
> just dump them ?
>
You're absolutely right - that was just some naivity on my part, thanks f=
or
the tip.
Beers!