On 10/28/07, Roan Kattouw roan.kattouw@home.nl wrote:
Bryan Tong Minh schreef:
Page editting:
page = site.Pages['Commons:Sandbox'] text = page.edit() page.save(text + u'\ntest', summary = 'Test edit')
Uploading:
site.Images.upload(open('file.jpg'), 'destination.jpg', 'Image description')
Please note that edit and upload functionality in the API is not implemented in trunk (the 'standard' version of MediaWiki), but only in the apiedit_Vodafone branch [1]. (Un)deletion, (un)protection, (un)blocking, rollback and user rights are implemented in the apiedit branch [2].
Roan Kattouw
[1] http://svn.wikimedia.org/viewvc/mediawiki/branches/ApiEdit_Vodafone [2] http://svn.wikimedia.org/viewvc/mediawiki/branches/apiedit
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mwclient still uses the normal index.php for saving pages. Edit tokens are obtained via the API.
Bryan