def goto(self, title): page = PageData.get_by(pagename=title) if page is None: log.info('New wiki page: [%s]' % title) PageData(pagename=title, data=u'') self.content.becomes(Page(title))
def goto(self, title): """Navigate to an other page In: - ``title`` -- title of the new page to display """ # Retrieve the new page data from the database page = PageData.get_by(pagename=title) if page is None: # The new page doesn't exist, create it in database PageData(pagename=title, data=u'') # Permanently replace, into the component graph, the currently # displayed page by the new one self.content.becomes(Page(title))
def goto(self, title): page = PageData.get_by(pagename=title) if page is None: PageData(pagename=title, data=u'') self.content.becomes(Page(title))