Using the ports collection in freebsd I installed zope 2.7.2. Then when to install cmf 1.4.5 also from the ports collection. Zope is running fine. when making cmf though I get an error : =========== Compiling /usr/ports/www/zope-cmf/work/CMF-1.4.5/CMFDefault/skins/generic/truncID.py ... File "/usr/ports/www/zope-cmf/work/CMF-1.4.5/CMFDefault/skins/generic/truncID.py", line 6 return objID[:size] + '...' SyntaxError: 'return' outside function ========== and I can't tell whether this is critical or not. Anyone using zope from the ports collection? I am assuming the cmf-1.4.5 is compatible with zope 2.7.2 -- since thats not easily found on the zope.org and cmf.zope.org site.. -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"
David Bear wrote at 2004-7-29 16:49 -0700:
Using the ports collection in freebsd I installed zope 2.7.2. Then when to install cmf 1.4.5 also from the ports collection. Zope is running fine. when making cmf though I get an error :
=========== Compiling /usr/ports/www/zope-cmf/work/CMF-1.4.5/CMFDefault/skins/generic/truncID.py ... File "/usr/ports/www/zope-cmf/work/CMF-1.4.5/CMFDefault/skins/generic/truncID.py", line 6 return objID[:size] + '...' SyntaxError: 'return' outside function ==========
and I can't tell whether this is critical or not. Anyone using zope from the ports collection? I am assuming the cmf-1.4.5 is compatible with zope 2.7.2 -- since thats not easily found on the zope.org and cmf.zope.org site..
I thought, this had been fixed a long time ago... The generation process tries to compile an "FSPythonScript". It should not do this. While such scripts are essentially functions, their function head (with the definition) is coded differently. Therefore, the standard Python interpreter does not understand them. The generation process should not enter "skins" directories... -- Dieter
participants (2)
-
David Bear -
Dieter Maurer