There could be a way with zserver but I don't know it. My advice is to use PCGI for performance and salability anyway, though. ZServer is quicker to setup, but in a production environment, apache is still higher performance. Although, having CGI scripts are never good for performance. ;) PCGI is fine though. You can generally have both pcgi and zserver installed without a conflict; there's just no point to it. There very well could be a way to "wrap" CGI scripts in zserver, but it would still be better done in a true apache environment, where it belongs. To be 100% ZOPE you would re-implement everything in Zope/Python/DTML though. I've seen a lot of company areas where zope stuff points to CGI stuff and visa versa, so your situation seems to frequently be solved that way. jessica lee tishmack wrote:
Is there a way to do this using Zope-zserver, and not Zope-pcgi? When I started this, I was just using the Zserver....but now that I need to include calls to cgi programs for the sake of a couple images, I am thinking I will needs Zope-pcgi..
If this is the case, I will need to uninstall the Zope-Zserver (if I try to have both, there is a conflict) and install Zope-pcgi. Does this mean I will have to import all the files, directories, etc. back into Zope, and then reconfigure all of the files (replace all SSI lines with dtml lines, etc)?
Thanks, Jessica
So, you have a CGI script that dynamically creates an image as its output. You'll either need to re-implement this using Python and make a ZOPE product, wrap it using a Zope product (which seems the least elegant), or just keep it out of Zope (probably the desirable). I assume you're running apache and using Zope.cgi, so your Zope path is
Now, your CGI scripts are under:
You'll just want to reference the images just like you would in normal HTML. Zope will not mess with an img tag, so if it points to a working CGI script, you're ok.
Does that answer your question?
_______________________________________________ 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 )
-- Ken Kinder 303.381.7631