[Zope] Re: ColdFusion, ASP, etc with Zope/Plone

Mark, Jonathan (Integic) jonathan.mark at integic-hc.com
Thu Jan 25 10:41:30 EST 2007


>>>Is their a method to get most things to Zope/Plone but certain folders to go
to ColdFusion.<<<

Does ColdFusion have an API which can be called from Python or Perl? Does it have an XML-RPC, SOAP or other web API interface? If so then you could write a Zope External Method in Python or Perl that runs ColdFusion using the latter's API. You will be able to pass in the parameters that you need from Zope, and return ColdFusion output to display in Zope. 

For instance, I run a simple example of this approach at http://jonathanmark.com:8080/Cheetah/callUseCheetah on a Zope 2.10 server. the Zope Python Script callUseCheetah acquires the names of members of the Byrds rock group. It acquires these names from a lines property of the Zope folder Cheetah. (Cheetah is not just a folder name, it is also the name of a Python templating engine.)

callUseCheetah then calls the Zope External Method useCheetah to render the output.

The template engine Cheetah returns the rendered page to Zope which displays the names in the title of the page.

Here is the the Zope Python Script callUseCheetah:

# code to get 'htmlpage' goes here...
htmlpage = context.html
# now extract the body
body = context.useCheetah(htmlpage, context.name)
# now do something with 'body' ...
print body
return printed





More information about the Zope mailing list