def rename_page(self, old_slug, new_title):
        '''Load the page corresponding to the slug, and rename it.'''
        #load page
        p = s2page.Page(self, old_slug, isslug=True)
        p.rename(new_title)
def rename_page ( self , old_slug , new_title ) : p = s2page . Page ( self , old_slug , isslug = True ) p . rename ( new_title )
Load the page corresponding to the slug, and rename it.