Zope NewBie loosing hairs on python

bobb rawbobb at hotmail.com
Fri Jun 11 00:03:10 CEST 2004


I believe your looking to use an external method.
there is a zope group also, zope at zope.org...

bobb

"Krapul" <lreenaers at hotmail.com> wrote in message
news:fa50f244.0406090920.32ae6383 at posting.google.com...
> 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





More information about the Python-list mailing list