[Zope] Re: Upgrading to Zope 2.9.1

Max M maxm at mxm.dk
Fri Mar 10 04:40:37 EST 2006


Chris Withers wrote:
> Dieter Maurer wrote:
> 
>> It does now -- at least for "FSPythonScripts" when you are on a *nix
>> platform and your files contain DOS lineends.
> 
> 
> Does this only affect (FS)PythonScripts or all disk based python code?


There has been a bug in Zope since ages, where multiline python in tal 
fails if it has Window line endings.

Eg. this will fail with windows line endings:

<div tal:content="content python:' '.join(['oh',
                                    'bugger'])">

This does not have multiline Python in the tal expression and will not fail:

<div tal:attributes="title string:a title;
                      id python: '42';">

I have no idea if it is a manifestation of the same problem.


Since no one with the knowledge of the ZPT is willing to fix it, I did 
it for myself by setting up my svn rules to linux line endings ...


But it is clearly an annoying bug. Imagine if plain Python worked that 
way :-(


-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96



More information about the Zope mailing list