K
Krapul
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
this:
***on one side, I have a python module...let's say testa.py, formated
like this:
class testb:
def __init__(self):
self.x='hello'
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)
a=testa.testb()
x=a.dsp()
print "<html><head></head><body>"+str(x)+"</body></html>
cgitb.enable()
************************************************************************
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
CGI?"
Please somebody help...I'm completly lost...Thanks in advance,
Ludo
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
this:
***on one side, I have a python module...let's say testa.py, formated
like this:
class testb:
def __init__(self):
self.x='hello'
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)
a=testa.testb()
x=a.dsp()
print "<html><head></head><body>"+str(x)+"</body></html>
cgitb.enable()
************************************************************************
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
CGI?"
Please somebody help...I'm completly lost...Thanks in advance,
Ludo