We have been seeing a number of instances where python scripts fail due to an apparent "syntax error" but the syntax is correct and simply storing the method restores it to functionality. Anyone else seeing this? -- Dennis Allison * Computer Systems Laboratory * Gates 227 * Stanford University * Stanford CA 94305 * (650) 723-9213 * (650) 723-0033 fax * allison@shasta.stanford.edu * allison@sumeru.stanford.edu
Dennis Allison wrote at 2005-6-16 09:06 -0700:
We have been seeing a number of instances where python scripts fail due to an apparent "syntax error" but the syntax is correct and simply storing the method restores it to functionality. Anyone else seeing this?
I saw this today. I expect DOS type line endings. Your browser (or maybe the ":text" converter in ZPublisher) will remove them. Therefore, they disappear when you "store" again. -- Dieter
Dieter Maurer wrote:
I saw this today.
I expect DOS type line endings.
Your browser (or maybe the ":text" converter in ZPublisher) will remove them. Therefore, they disappear when you "store" again.
Indeed, but should ZPT Python Scripts really be so sensitive to line endings? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Dennis Allison -
Dieter Maurer