def get_page(self, name, only_api_url=False): """Retrieve the page object.""" page = Page(name, api_url='http://localhost/dummy-api') if not only_api_url: page.title = name.capitalize() page.content = 'This is the {} page'.format(page.title) return page
def get_page(self, name, only_api_url=False): """Retrieve the page object.""" page = Page(name, api_url="http://localhost/dummy-api") if not only_api_url: page.title = name.capitalize() page.content = "This is the {} page".format(page.title) return page
def get_page(self, name, only_api_url=False): """Retrieve the page object.""" page = Page(name) if not only_api_url: page.title = name.capitalize() page.content = self.content.format( title=page.title, loader_name=self.__class__.__name__ ) return page