Hey Mixo, You can call external programs/CGI scripts from Zope using "External Methods." You basically wrap the CGI call within a python script (not to be confused with a Zope python script) which returns the result of that call to Zope. There are lots of examples of External Methods out there, look in the Zope book and the mailing list archives. Also, if you scour the mailing list archives, you'll find an example of what you want. Search for CGI and my name and you'll find something on it from about year ago. Be very careful in doing these kind of External Method / CGI calls as it is a potential security risk. Eric.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of mixo Sent: Tuesday, August 14, 2001 6:32 AM To: zope@zope.org Subject: Re: [Zope] Server Side Questions Importance: High
"J. Cameron Cooper" wrote:
Is it possible to execute a cgi script (possibly not python) within a dtml document?
There is at least one product that lets you include the data of any other web page in a Zope page. Can't remember the name, but it's been mentioned several times on this list. You could use this to suck data from a cgi URL. Don't know if this is what you're looking for -- I don't imagine that it handles the environment in a very complex way.
Are server side includes possible? And can a web server (say apache) be configured to procces Zope objects as if they are some other type of document that can or should be proccess by the server before being sent to a browser?
Although I can't imagine why you would need to do this (Zope is much better than SSI) I suppose it might be possible. Zope leaves SSI directives in the page, so if you can convince Apache to process pages coming through a ProxyPass or RewriteRule or something then you've got it. Don't know enough about Apache to say how, or if something exists now to do this (I would think so), but you could always write an Apache mod that interferes in the publishing process if nothing exists to help you. (I'm thinking mod_python. Hehe.)
--jcc (extensible)
I already have cgi scripts (shell scripts) that perform certain functions which are sitting on some remote machine (which is not running Zope). I want to be able to use them, and avoid rewriting them in Python (at least for now). What I am looking for is something like <!--#exec cgi="somescript--> which executes a cgi script.
Mixo
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )