[Moin-user] Re: New User:Writing page to a file

Alexander Schremmer 2005a at usenet.alexanderweb.de
Wed Apr 6 09:40:52 EDT 2005


On Tue, 05 Apr 2005 11:45:04 +0100, Ronan Watson wrote:

> Using, 
> page.send_page(request),
> works fine. It sends the text to the wiki web page. Now I want to save
> the text from this request to a file. How do I get the text out of this
> request? 

Look at Page.py, getPageLinks:
request.redirect(FILE_HERE!)
try:
    Page(request, self.page_name).send_page(request, content_only=1)
finally:
    request.redirect()

That should do it after you have set the file in the first line. 

Kind regards,
Alexander





More information about the Moin-user mailing list