[Zope-CMF] Re: How to translate CMF, first summary
Tres Seaver
tseaver@palladion.com
Thu, 27 Sep 2001 08:55:26 -0400 (EDT)
On Thu, 27 Sep 2001, Tille, Andreas wrote:
> On Thu, 27 Sep 2001, Jens Vagelpohl wrote:
>=20
> > yes, something is probably wrong. make sure that your setup
> > is really running off the set of files you are looking at.
>
> Yes, there seems to be something wrong ...
>=20
> I found a tool in my Debian GNU/Linux setup which byte-compiles
> all .py files in a given directory. I did so and detected the
> following:
The Debian tool should not be applied to the "*.py" files in the
skin directories. A PythonScript's representation on the
filesystem is *not* a compilable Python module -- you should
*never* see a 'foo.pyc' file for the FSPythonScript file
'foo.py'. In particular, the lines which appear to be at "module
scope" to the compiler are, in fact, the body of the function
which is created from the FSPythonScript; 'return' is therefore
allowable, and indeed, usual.
> I=B4m a real python beginner and I do not understand the problem.
> But obviousely it is the same for the file menuTranslator.py
> cmf-int which made my trouble in the beginning.
>=20
> Any suggestion, how to fix that?
I don't know the menuTranslator.py file; if it is supposed to
work as a FSPythonScript, then it won't be compilable by the
tool, either.
Tres.
--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com