[ZPT] Structural Logic: Really, It Is...

beno zope@thewebsons.com
Mon, 07 Oct 2002 07:00:15 -0400


At 10:59 PM 10/6/2002 +0200, you wrote:

>Hi Beno,
>  > >  So instead of:
>  > ><font style="font:
>  > >tal:attributes='python:here.sizeCalc(44,here.size(None,  context))'" >
>  > >
>  > >  which most probably will not be changed if rendered by ZPT, You may 
> try:
>  > ><font style="font' tal:attributes="style
>  > >python:here.sizeCalc(44,here.size(None,  context))" >
>  >
>  > I've tried several variations of this *except* the one you specify 
> because
>  > after the second *font* you have syntax that must be a typo: a single 
> quote
>  > that isn't closed elsewhere and the HTML requires a colon there. At any
>  > rate, I've had no success. Please be patient and tell me once again...
>  > beno
>
>Yes, there is indeed a typo :(, it should read:
>
><font style="font" tal:attributes="style 
>python:here.sizeCalc(44,here.size(None,  context))" >

Error Type: NameError
Error Value: global name 'context' is not defined

>sorry, I just replied shortly and did not test it. well, it _should_
>work this time ...

No problem. I appreciate you taking the time! But still no cigar... What next?
TIA,
beno