def add_page(self, title=None, content=None, old_url=None,
                 tags=None, old_id=None, old_parent_id=None):
        """
        Adds a page to the list of pages to be imported - used by the
        Wordpress importer.
        """
        if not title:
            text = decode_entities(strip_tags(content)).replace("\n", " ")
            title = text.split(". ")[0]
        if tags is None:
            tags = []
        self.pages.append({
            "title": title,
            "content": content,
            "tags": tags,
            "old_url": old_url,
            "old_id": old_id,
            "old_parent_id": old_parent_id,
        })
def add_page ( self , title = None , content = None , old_url = None , tags = None , old_id = None , old_parent_id = None ) : if not title : text = decode_entities ( strip_tags ( content ) ) . replace ( "\n" , " " ) title = text . split ( ". " ) [ 0 ] if tags is None : tags = [ ] self . pages . append ( { "title" : title , "content" : content , "tags" : tags , "old_url" : old_url , "old_id" : old_id , "old_parent_id" : old_parent_id , } )
Adds a page to the list of pages to be imported - used by the
        Wordpress importer.