[Zope-CMF] Bug#143449 zope-cmfdefault: errors when upgrading zope

Tres Seaver tseaver@zope.com
Fri, 19 Apr 2002 09:26:52 -0400 (EDT)

On Fri, 19 Apr 2002, Luca - De Whiskey's - De Vitis wrote:

> Hi all,
> I recived this bug report for the zope-cmf Debian GNU/Linux package:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143449&repeatmerged=yes
> I hope the report is clear enough.
> Any subsequent zope restart does not produce the same errors.
> Any hint?

"return outside function" is a symptom of trying to compile the
PythonScript skin methods as though they were Python modules;  the
setup is (mistakenly) trying this because the skin methods are
sourced from files whose extension is ".py".

These files actually contain only the body (without the
'def functionname():') of the method, which is a consequence of
sharing the filesystem representation of PythonScripts.

We havea related tracker issue, asking that we not use that extension
for the skin method files:

The downside to changing the extension is that tools which use the
extension to do syntax highlighting won't be able to figure out that
the files are Python.

Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.org