python&zope

Oleg Seifert misterxx at uni-koblenz.de
Mon Jun 23 03:23:05 EDT 2003


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.

What I'm doing wrong?

Thanks.





More information about the Python-list mailing list