python&zope

Thomas Güttler guettler at thomas-guettler.de
Mon Jun 23 12:47:42 CEST 2003


Oleg Seifert wrote:

> 
> Hello,
> 
> 
> I want to put this script in Zope,
> 
> ===============================
> from socket import *
> 
> def read():
>      print s.recv(1024)
> 
> s = socket(AF_INET, SOCK_STREAM)
> s.connect(("localhost", 99))
> 
> s.send("loadGraph(\"g.g\");\n")
> read()
> s.close()
> ===============================
> 
> but when I try to run this under Zope I get the error:
> 
> Error Type: RuntimeError
> Error Value: Script (Python) anfrage has errors.

If you put this 
 <dtml-var error_tb> 
into standard_error_message you will get a traceback which
might help you.

 thomas






More information about the Python-list mailing list