[Zope] problems with adding monthRange.py as Python script object
Frank McGeough
FrankMcGeough@msn.com
Mon, 18 Jun 2001 22:30:05 -0400
------=_NextPart_001_0000_01C0F846.393EF3C0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am trying to add the monthRange.py Python script into a Zope folder. I =
get the following traceback that looks like Zope's having trouble finding=
DateTime. DateTime is definitely there and compiled o.k. (pyc files are =
present) Any ideas? I am running Zope 2.3.2 and CMF 1.1beta on a Windows =
ME machine at home. What's with the empty string after the File in the me=
ssage below? Is that part of the problem? Thanks for any hints.
File "", line 2
from DateTime import DateTime
^
SyntaxError: invalid syntax
Traceback (innermost last):
File C:\Program Files\EmanuEl\lib\python\ZPublisher\Publish.py, line 22=
3, in publish_module
File C:\Program Files\EmanuEl\lib\python\ZPublisher\Publish.py, line 18=
7, in publish
File C:\Program Files\EmanuEl\lib\python\Zope\__init__.py, line 221, in=
zpublisher_exception_hook
File C:\Program Files\EmanuEl\lib\python\ZPublisher\Publish.py, line 17=
1, in publish
File C:\Program Files\EmanuEl\lib\python\ZPublisher\mapply.py, line 160=
, in mapply
(Object: manage_addPythonScript)
File C:\Program Files\EmanuEl\lib\python\ZPublisher\Publish.py, line 11=
2, in call_object
(Object: manage_addPythonScript)
File C:\Program Files\EmanuEl\lib\python\Products\PythonScripts\PythonS=
cript.py, line 124, in manage_addPythonScript
File C:\Program Files\EmanuEl\lib\python\Products\PythonScripts\PythonS=
cript.py, line 443, in write
(Object: monthRange)
File C:\Program Files\EmanuEl\lib\python\Products\PythonScripts\PythonS=
cript.py, line 283, in _makeFunction
(Object: monthRange)
Python Script Error: (see above)Get more from the Web. FREE MSN Explorer=
download : http://explorer.msn.com
------=_NextPart_001_0000_01C0F846.393EF3C0
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>I am trying to=
add the monthRange.py Python script into a Zope folder. I get the follow=
ing traceback that looks like Zope's having trouble finding DateTime. Dat=
eTime is definitely there and compiled o.k. (pyc files are present) Any i=
deas? I am running Zope 2.3.2 and CMF 1.1beta on a Windows ME machine at =
home. What's with the empty string after the File in the message below? I=
s that part of the problem? Thanks for any hints.</DIV> <DIV> </DIV>=
<DIV> File "<STRING>", line 2<BR><BR> from DateT=
ime import DateTime<BR><BR> &nbs=
p;  =
; =
^<BR><BR>SyntaxError: invalid syntax<BR>Traceback (innermost last):<BR>&=
nbsp; File C:\Program Files\EmanuEl\lib\python\ZPublisher\Publish.py, lin=
e 223, in publish_module<BR> File C:\Program Files\EmanuEl\lib\pyth=
on\ZPublisher\Publish.py, line 187, in publish<BR> File C:\Program =
Files\EmanuEl\lib\python\Zope\__init__.py, line 221, in zpublisher_except=
ion_hook<BR> File C:\Program Files\EmanuEl\lib\python\ZPublisher\Pu=
blish.py, line 171, in publish<BR> File C:\Program Files\EmanuEl\li=
b\python\ZPublisher\mapply.py, line 160, in mapply<BR> =
(Object: manage_addPythonScript)<BR> File C:\Program Files\EmanuEl\=
lib\python\ZPublisher\Publish.py, line 112, in call_object<BR>  =
; (Object: manage_addPythonScript)<BR> File C:\Program Files\=
EmanuEl\lib\python\Products\PythonScripts\PythonScript.py, line 124, in m=
anage_addPythonScript<BR> File C:\Program Files\EmanuEl\lib\python\=
Products\PythonScripts\PythonScript.py, line 443, in write<BR>  =
; (Object: monthRange)<BR> File C:\Program Files\EmanuEl\lib\=
python\Products\PythonScripts\PythonScript.py, line 283, in _makeFunction=
<BR> (Object: monthRange)<BR>Python Script Error: (see =
above)<BR><BR></DIV></BODY></HTML><br clear=3Dall><hr>Get more from the W=
eb. FREE MSN Explorer download : <a href=3D'http://explorer.msn.com'>htt=
p://explorer.msn.com</a><br></p>
------=_NextPart_001_0000_01C0F846.393EF3C0--