Zope NewBie loosing hairs on python

Krapul lreenaers at hotmail.com
Wed Jun 9 19:20:18 CEST 2004

Hi everybody,

I'm using python for long time, now; currently developing a web-based
game working with python CGI and IIS. I've heard about various
interesting zope functionalities, but I'm facing a problem while
simply trying to integrate my python code within zope.

Let's depict a bit of example, I could schematise my current apps like

***on one side, I have a python module...let's say testa.py, formated
like this:

class testb:
  def __init__(self):
  def dsp(self):
     return self.x

***on the second side I have a CGI:

import cgi,cgitb
import sys
import testa
sys.stderr = sys.stdout
print "HTTP/1.0 200 OK" + chr(13)+chr(10)

print "<html><head></head><body>"+str(x)+"</body></html>

What I would understand is : "Is there a way to upload my python
module to zope and then using it in a dtml page (I guess)instead of

Please somebody help...I'm completly lost...Thanks in advance,


More information about the Python-list mailing list