How to programmatically create a new page in MoinMoin?

I want to write a python script that calls some external REST service and then creates MoinMoin pages based on the data I return. I am using Python 2.4.3 for CentOS 5.3 and MoinMoin 1.9.3 in a wiki farm configuration.

Note. I don’t want to embed data on pages using macros, since I already know how to do it. I want to create a page from a template, if at all possible, without having to do anything.

Can someone post some sample code or links to sample code on how to program page creation in MoinMoin?

+4
source share
1 answer

Here is the MoinMoin API documentation: http://moinmo.in/MoinAPI/Beispiele

It is in German (the main developers of MoinMoin are German). A.

I think what you want is PageEditor: http://moinmo.in/MoinAPI/Beispiele#PageEditor

+1
source

Source: https://habr.com/ru/post/1332459/


All Articles