Wiki#update_page takes a name parameter for renames

This commit is contained in:
rick
2010-08-02 15:39:04 -07:00
parent 6609b2d636
commit 760d9c1640
4 changed files with 45 additions and 13 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ Update an existing page. If the format is different than the page's current
format, the file name will be changed to reflect the new format.
page = wiki.page('Page Name')
wiki.update_page(page, page.format, 'Page contents', commit)
wiki.update_page(page, page.name, page.format, 'Page contents', commit)
To delete a page and commit the change: