Description
getPageInfoVersion does not return the author for revisions != 0.
Steps to reproduce
>>> xmlrpclib.ServerProxy("http://moinmoin.wikiwikiweb.de/?action=xmlrpc2").getPageInfoVersion("FrontPage", 1)['author'] '?'
Details
This wiki.
Workaround
You can find the respective entry for the page in the recent changes where the author is given. See MoinWiki.getPageInfo in http://www.merten-home.de/FreeSoftware/moinupdate/moinupdate . -- StefanMerten 2006-05-20 17:53:09
You may also use the plugin getRecentChangesWithAttributes from the remoteMoin collection of XML-RPC plugins. With this plugin you can get recent changes for selected pages containing all available information. -- StefanMerten 2006-05-21 19:25:26
Discussion
This happens because the called methods of the Page class do not support the author attribute correctly. In order to fix this, several methods need to be refactored.
A patch for 1.7 Page.py.patch, not sure if it is a good way to search in revisions, please check it out -- YuJieLin 2008-05-02 02:44:53
Thanks for the patch! It looks fine, except for the case when it does not find the rev in the edit-log (should not, but can happen). Maybe add some else branch to the for loop. -- ThomasWaldmann 2008-05-02 07:20:28 New patch xmlrpcpageinfo.patch -- YuJieLin 2008-05-02 12:45:17
Plan
- Priority:
- Assigned to:
Status: Fixed by http://hg.moinmo.in/moin/1.7/rev/c9494979fe7a (this also fixes some other problem and changes behaviour a bit, so it won't get backported to 1.6).