On May 10, 2012, at 1:41 PM, Randolph M. Fritz wrote: > > > If I understand correctly, what you're suggesting is a bit different than > what I am trying to do. The script I included creates a short report that > gives a list of the tags in the CVS hierarchy; its output looks like: >> rad3R5 >> rad3R6 >> rad3R6P1 >> rad3R7P1 >> rad3R7P2 >> rad3R8 >> rad3R9 >> rad4R0 >> rad4R1 >> > > I want to be able to run the script (perhaps every day, or on administrator > demand), cache the output, then take that list, and use it in Plone pages. > How best might I approach that problem? >
The easiest way to get what you want would be to use the script to write the output to a file on the filesystem somewhere, then open and read that file using plone. Depending on how pretty you want the output (and on how 'right' you want to be about your approach), the two possible ways to go here are a 'BrowserView', and an 'External Method'. You cannot use a Python Script created through the web, because Plone/Zope's underlying security will not allow TTW creation of a script that directly accesses the server filesystem (this is a good thing). What version of Plone are you using, and how pretty do you want it to be? Cris Ewing -------------------------------------------------- Principal, Cris Ewing, Developer LLC http://www.crisewing.com [email protected] 1.206.724.2112
