Hello, I have a wiki with some content I would like to dump to an external file, txt, pdf or html would be fine. How do I do this? This is what I have tried so far: - wget -r URL This didn't work. Wget gets the front page, but not the rest. -m didn't help either. I can see the "href=..." links to the other pages in the wiki, but wget ignores them. :( - wiki.org FAQ http://zwiki.org/UsageFAQ#I've%20organized%20my%20pages%20in%20a%20tree%20structure.%20What%20is%20the%20easiest%20way%20to%20print%20them%20all%20? This FAQ answer refers to a PrintMethod for wikis but I can't find this product. The link points off to "Create this Page". Any help is appreciated. Thanks, -- Ricardo Anguiano http://www.codesourcery.com
I have a wiki with some content I would like to dump to an external file, txt, pdf or html would be fine. How do I do this?
I can only make a semi-informed guess: they should have a way to get the source (src(), uncookedBody(), etc...) or rendered output (index_html, perhaps others). You should be able to located these with a quick browse through the source or API docs (if any.) Write a tree-walker script that calls this method on all your Wiki page objects and saves the results, either as a File (perhaps to a LocalFS), or on disk if you use an ExternalMethod. Or make wget work. Can't say how, though. (You might also look at curl, which I think does this.) --jcc
On quinta-feira, mar 13, 2003, at 19:01 America/Sao_Paulo, J Cameron Cooper wrote:
Write a tree-walker script that calls this method on all your Wiki page objects and saves the results, either as a File (perhaps to a LocalFS), or on disk if you use an ExternalMethod.
After the invention of ZopeFind and ZCatalogs, there's no need to write tree-walking scripts in Zope. Just Find or Index your stuff and you have a nice flat list to scan. In fact, while indexing you can apply any method to all your objects in one pass. Just create an index named after your export method, and when you use the Find tab of the ZCatalog, the method will be called on all objects that match your find criteria. -- Luciano
After the invention of ZopeFind and ZCatalogs, there's no need to write tree-walking scripts in Zope. Just Find or Index your stuff and you have a nice flat list to scan.
In fact, while indexing you can apply any method to all your objects in one pass. Just create an index named after your export method, and when you use the Find tab of the ZCatalog, the method will be called on all objects that match your find criteria.
Hm! Good point. Turns out I'm old-fashioned. --jcc
participants (3)
-
J Cameron Cooper -
Luciano Ramalho -
Ricardo Anguiano