[Zope] Re: survey: zope 2.7 syntax errors with TAL statments over multiple lines

Tres Seaver tseaver at zope.com
Fri Jan 9 10:35:08 EST 2004


Gerry Kirk wrote:
>> I'm experiencing the same sort of problem as you - e.g., these lines
>> (which happen to be from the epoz_toolbox.pt):
>>
>> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
>>           tal:define="charset 
>> here/portal_properties/site_properties/default_charset; dummy 
>> python:request.RESPONSE.setHeader('Content-Type', 
>> 'text/html;;charset=%s' % charset)"
>>           tal:attributes="content 
>> string:text/html;;charset=${charset}" />
>>
>> produced an error before I moved the 2 tal:define clauses up onto one
>> line.
>>
>> very weird
>>
> 
> I was able to fix the problem by creating a new file, copy/pasting the 
> contents of the original file into the new file, and saving it under the 
> same name. I'm running everything in Linux.

That smells like a line-ending problem;  could the original 
epoz_toolbox.pt have ^N characters embedded in it?

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com



More information about the Zope mailing list