[Zope-CMF] Packaging products for another system

Shane Landrum srl at boston.com
Fri Feb 6 07:54:42 EST 2004


On Thu, Feb 05, 2004 at 02:53:20PM -1000, Nava, Christopher L.  Contractor wrote:
> I'm trying to find an example of using a workflow script to "tar" a product as it is published.
> 
> For security reasons our intranet is physically disconnected from the web server.
> Published items are transferred via sneaker-net to the "dissemination system".
> 
> What I need to do is:
> Dump a published document (html) to disk with any metadata that was added to it (summary, key words, etc...)
> Parse it for "img src=" tags (the images are already in the file system).
> Tar the document and it's images.
> 
> I found a script that creates a PDF via htmldoc...
> (http://www.zope.org/Members/mjablonski/howtoPDF)
> However, the htmldoc program takes a URL while the system's tar command takes a file system reference.
> 
> It would be nice to do the tarring within python if support for such exists.
> 
> Has anyone done something like this?

Why not use wget to spider the site and create a local copy, then tar it up
for move to the production server?

I've got more complex ideas, but they seem like overkill for this situation. 

srl
-- 
Shane Landrum, Software Engineer    srl at boston.com
boston.com / NY Times Digital



More information about the Zope-CMF mailing list